Report Already Compiled
Posted: Tue Jan 18, 2011 4:49 am
Hi,
First off I would like to say that Stimulsoft Reports is a great tool, and meets all my needs for creating complex documents and reports :feelgood:
Unfortunately, I've come up against a problem:
On my report screen I have added 3 buttons - Generate, Save, and Open.
The Generate button fills various datasets in my report, compiles the report with Compile(), assigns values to report variables, followed by Render() then Show().
The Save button saves the generated report using Report.SaveDocument(FileName)
The Open button loads a previously saved report using Report.LoadDocument(FileName)
My problem is that if I click the Open button to open a previously saved report, then click the Generate button to re-create the original report I get the
"Report Already Compiled" error message on the Compile() statement in my generate function.
Hope you can help.
First off I would like to say that Stimulsoft Reports is a great tool, and meets all my needs for creating complex documents and reports :feelgood:
Unfortunately, I've come up against a problem:
On my report screen I have added 3 buttons - Generate, Save, and Open.
The Generate button fills various datasets in my report, compiles the report with Compile(), assigns values to report variables, followed by Render() then Show().
The Save button saves the generated report using Report.SaveDocument(FileName)
The Open button loads a previously saved report using Report.LoadDocument(FileName)
My problem is that if I click the Open button to open a previously saved report, then click the Generate button to re-create the original report I get the
"Report Already Compiled" error message on the Compile() statement in my generate function.
Hope you can help.