increase performance

Stimulsoft Reports.NET discussion
Post Reply
ramesh55
Posts: 9
Joined: Mon Aug 19, 2013 12:16 pm

increase performance

Post by ramesh55 »

hi,
I am using below code to generate pdfs passing soa_id one by one.but here to generate 1000 pdfs or htmls its consuming 25 minutes.here its consuming time to compile every time.Is there any alternative ,or reduce code from below.

I have followed links which were sent by you to reduce time in mrt designing. i need the time reducing in .cs

foreach (DataRow DR in ds.Tables[0].Rows)
{
objStiReport.DataSources["Reportvalues"].Parameters["soa_id"].Value = DR["soa_id"].ToString(); //passing arguments
// objStiReport.DataSources["Reportvalues"].Parameters["Addresstype"].Value = "BIL"; //passing arguments

objStiReport.Compile();
objStiReport.Render(true);
StiorderDetail.Report = objStiReport;
StiorderDetail.Report.ExportDocument(StiExportFormat.Html, Server.MapPath("~/Reports/OrderDetails/" + DR["soa_id"].ToString() + "_1.html"), objStiPdfExportSettings); // generating pdf file in a given location
StiorderDetail.Dispose();
}
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: increase performance

Post by Alex K. »

Hello,

Can you please send us a sample project which reproduce the issue for analysis.

Also please try to see the following series of articles about optimization reports on our blog:
part 1:
http://blog.stimulsoft.com/articles/optimizing-reports
part 2:
http://blog.stimulsoft.com/articles/opt ... rts-part-2
part 3:
http://blog.stimulsoft.com/articles/opt ... rts-part-3

Thank you.
ramesh55
Posts: 9
Joined: Mon Aug 19, 2013 12:16 pm

Re: increase performance

Post by ramesh55 »

Hi,

PFA

In attached file, mrt file exists in reports folder and code exists in default.aspx.

If u find any code or mrt related changes please give me the steps one by one.

for me to generate 1000 htmls or pdfs it consuming 24 minutes of time. but for the same, crystal reports are consuming only 6
minutes.please give me a solution to achieve the same in stimulsoft in 6 or lesser than that time.
Attachments
DemoStimulsoft.rar
In attached file, mrt file exists in reports folder and code exists in default.aspx
(2.5 MiB) Downloaded 136 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: increase performance

Post by Alex K. »

Hello,

It is difficult to give any advices without test data. Can you please provide a test data for your project.

Thank you.
ramesh55
Posts: 9
Joined: Mon Aug 19, 2013 12:16 pm

Re: increase performance

Post by ramesh55 »

how can i give u the test data, in the form of db or in what?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: increase performance

Post by HighAley »

Hello.

As a way, you can use the following code in the BeforePrint event of a page and sent us the files you get.

Code: Select all

{YourDataTableName}.DataTable.DataSet.WriteXml("e:\\data.xml");
{YourDataTableName}.DataTable.DataSet.WriteXmlSchema("e:\\data.xsd");
Thank you.
Post Reply