Big Problem with Report.Show
Posted: Wed May 16, 2007 8:08 am
Please use the following code to initialize variable MyVar in the Compiled report.
In the build from May, 17 your code will work as
correctly.
Thank you.
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);
Code: Select all
MyReport["MyVar"] = 2; Thank you.