Page 1 of 1

The difference between two ways ??

Posted: Wed Apr 28, 2010 10:02 pm
by lampson
the first:

Code: Select all

 CP.LoadStyle(style);
               CP.Reports.CompiledReport.DataStore.Clear();

                CP.Reports.CompiledReport.RegData(dvtitle.Table.TableName, dvtitle);
                CP.Reports.CompiledReport.RegData(dvdetail.Table.TableName, dvdetail);

                CP.Reports.CompiledReport.Render();

                CP.Reports.CompiledReport.Print();
the second :

Code: Select all

 CP.LoadStyle(style);
               CP.Reports.CompiledReport.DataStore.Clear();

                CP.Reports.CompiledReport.RegData(dvtitle.Table.TableName, dvtitle);
                CP.Reports.CompiledReport.RegData(dvdetail.Table.TableName, dvdetail);

                StiReportV2Builder.RenderSingleReport(CP.Reports.CompiledReport, new StiRenderState(true));

                CP.Reports.CompiledReport.Print();
thank you .

The difference between two ways ??

Posted: Thu Apr 29, 2010 9:11 am
by Jan
Hello,

StiReportV2Builder.RenderSingleReport method used for report rendering when this report don't have SubReports (SubReports property of report) and this report use EngineV2. Please use Render method.

Thank you.

The difference between two ways ??

Posted: Thu Apr 29, 2010 7:10 pm
by lampson
Thank you for your answer .

If there is no SubReport, it will use the second method the efficiency of higher ??

The difference between two ways ??

Posted: Fri Apr 30, 2010 12:46 am
by Jan
Hello,

No. Second method is internal use only. Please use common way.

Thank you.

The difference between two ways ??

Posted: Fri Apr 30, 2010 5:32 am
by lampson
Hello .
Sometimes, I used the first way to print data, will not respond, restart the application, they can use. This phenomenon is random .

When normal ,this is the contents of the Report.log :
2010:04:29, 11:03: StiReport: Compiling report
2010:04:29, 11:03: repots: Rendering report
2010:04:29, 11:03: repots: Rendering print

When no response,this is the contents of the Report.log :
2010:04:29, 11:03: StiReport: Compiling report .


This is my machine configuration: Celeron's CPU, 256 MB of memory,is a relationship with the machine configuration?

Thank you.

The difference between two ways ??

Posted: Sat May 01, 2010 12:16 am
by Jan
Hello,

Please read following topic:

http://forum.stimulsoft.com/Default.aspx?g=posts&t=142

Thank you.

The difference between two ways ??

Posted: Mon May 03, 2010 7:19 pm
by lampson
Hello ,
Save the report as class and add it to project. In this case compiling occurs together with project.

I have tested , this seems to be higher efficiency ,but, not tested long-running situation..

Thank you for your answer.