Refresh Report.Designer after new report is loaded
Mark Elder
SD, USA
Hello,
I am trying to put something together like the Embedded Designer demo. In my case things will be reversed. The report will be loaded and then if the user wants to make changes they will switch to the designer tab. I have a drop down list of the available reports that the user can switch between. I am having trouble when switching to a different report.
If the user comes into the screen designs one report and then changes to a different report I have the following order of things:
I found the Designer.ReloadReport method and I see that it is called if the Designers loads the report file. I get an AV when trying to call ReloadReport or even if I just switch to the tab that contains the designer.
Is there something different needed to notify the designer that the report in the frxReport object has been changed?
Thanks,
Mark
I am trying to put something together like the Embedded Designer demo. In my case things will be reversed. The report will be loaded and then if the user wants to make changes they will switch to the designer tab. I have a drop down list of the available reports that the user can switch between. I am having trouble when switching to a different report.
If the user comes into the screen designs one report and then changes to a different report I have the following order of things:
 Â
  Report.LoadFromFile('FirstReport.fr3')
  Report.ShowReport(true);
  Report.DesignReportInPanel;
  Report.ShowReport(true);
  Report.LoadFromFile('SecondReport.fr3')
  // ?? Notify Designer that report changed
  Report.Designer.ReloadReport; // Causes AV
I found the Designer.ReloadReport method and I see that it is called if the Designers loads the report file. I get an AV when trying to call ReloadReport or even if I just switch to the tab that contains the designer.
Is there something different needed to notify the designer that the report in the frxReport object has been changed?
Thanks,
Mark