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
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