FastReport
FastReport copied to clipboard
Report.Prepare() takes too much time to compile the report
``
var report = new WebReport();
report.Report.Load(ReportFilePath);
report.Report.RegisterData(ds, DatabaseName);
if (parameters != null && parameters.Count > 0)
{
parameters.ForEach(e =>
{
report.Report.SetParameterValue(e.Name, e.Value);
});
}
report.EmbedPictures = true;
report.Report.Prepare();
//return report;
``
It takes too much time to prepare the report. minimum 30 secs after providing all the data in a DataSet. Am I doing any thing wrong?
Interesting, How big is your dataset?
This behavior usually occurs because of a large dataset or a complex report.