LoadFromStream on embedded designer causes access violation

Hi,

I've designed a report in my embedded end user report designer (using ShowDesignerInPanel). I save the report with 'save to stream', the file looks fine. No database connection, no datasets used in the report, simply a page header band and a label.

I reload the file using LoadFromStream > I get Access Violations when the designer is trying to paint the report.

No clue why.

Any ideas?

With regards,

Martijn Tonies

Comments

  • Hello,

    When working with report component while designer is active you need to lock the report designer and reload it after.

    Something like that:


     frxReport1.Designer.Lock;

     try

      frxReport1.LoadFromFile();

     finally

      frxReport1.Designer.ReloadReport;

     end;

  • Create small demo project with error and send it to support@fast-report.com

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.