For faster reports
Posted: Tue Jul 10, 2007 4:39 pm
Hi !
We are trying to speed up our reporting engine and I would like to see what can be done to speed things up on the report side. For now, we are using the following code :
StiReport stiReport = new StiReport();
xmlData.Position = 0;
DataSet dataset = new DataSet();
dataset.ReadXml(xmlData);
stiReport.Load(sessionInfo.SummaryReportPath);
stiReport.Dictionary.DataStore.Clear();
stiReport.Dictionary.Databases.Clear();
stiReport.RegData("Visit", dataset);
stiReport.Dictionary.Synchronize();
stiReport.PrinterSettings.ShowDialog = false;
stiReport.Compile();
stiReport.CompiledReport.Rendering += new EventHandler(OnRendering);
stiReport.Render(false);
stiReport.Print(GetPrinterSettings(sessionInfo));
xmlData.Close();
stiReport.Dispose();
I think there's an optimization possible if I use compiled reports, but I'm not sure what are the implications of using them, is there any other thing we can do to speed things up with this ?
Thanks
Sacha
We are trying to speed up our reporting engine and I would like to see what can be done to speed things up on the report side. For now, we are using the following code :
StiReport stiReport = new StiReport();
xmlData.Position = 0;
DataSet dataset = new DataSet();
dataset.ReadXml(xmlData);
stiReport.Load(sessionInfo.SummaryReportPath);
stiReport.Dictionary.DataStore.Clear();
stiReport.Dictionary.Databases.Clear();
stiReport.RegData("Visit", dataset);
stiReport.Dictionary.Synchronize();
stiReport.PrinterSettings.ShowDialog = false;
stiReport.Compile();
stiReport.CompiledReport.Rendering += new EventHandler(OnRendering);
stiReport.Render(false);
stiReport.Print(GetPrinterSettings(sessionInfo));
xmlData.Close();
stiReport.Dispose();
I think there's an optimization possible if I use compiled reports, but I'm not sure what are the implications of using them, is there any other thing we can do to speed things up with this ?
Thanks
Sacha