Big Problem with Report.Show

Stimulsoft Reports.NET discussion
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Big Problem with Report.Show

Post by Edward »

Please use the following code to initialize variable MyVar in the Compiled report.

Code: Select all

StiReport MyReport = new Stireport();
MyReport.Load(@"C:\Myreport.mrt");
..
MyReport.RegData(...);
..
MyReport.Compile();
MyReport.CompiledReport["MyVar"] = 1; 
MyReport.Render(false);
MyReport.Show(true);
MyReport.CompiledReport["MyVar"] = 2;
MyReport.Render(false);
MyReport.Show(true);
In the build from May, 17 your code will work as

Code: Select all

MyReport["MyVar"] = 2; 
correctly.

Thank you.
EDV Gradl
Posts: 228
Joined: Sat Jun 17, 2006 9:50 am
Location: Germany

Big Problem with Report.Show

Post by EDV Gradl »

Thanks for the hint.

Marco
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Big Problem with Report.Show

Post by Vital »

We restore our previous code. So your code:

Code: Select all

StiReport MyReport = new Stireport();
MyReport.Load(@"C:\Myreport.mdc");
MyReport.Compile();
MyReport["MyVar"] = 1; // Value is set
MyReport.Render(false);
MyReport.Show(true);
MyReport["MyVar"] = 2 // Valus is not set
Will be work fine.

Thank you.
Post Reply