I am using this tool to create reports. But I am facing speed problem, I believe report creation process is very slow. Putting here code used to create report.
Code: Select all
StiReport report1 = new StiReport();
report1.Load(templatePath);
DataSet ds = new DataSet("Test");
ds = GetSurr(strProductid, m_age, m_state);
report1.Dictionary.DataSources.Clear();
report1.RegData(ds);
report1.Dictionary.Synchronize();
report1.Compile();
report1.Render();
StiPdfExportService pdfExport = new StiPdfExportService();
pdfExport.ExportPdf(report1, reportPath);
Thanks