FastReport.Prepare() VERY slow
We are using FastReports to email out invoices in PDF format.
When the code hits the FastReport.Prepare() line, it takes about 15 seconds to return.
Is this normal? Is there some way to speed this up?
String together 100 invoices being emailed out, and it causes our webpage to time out before it finishes.
We are using FR 2015.3.1 and VS2010.
Thanks
When the code hits the FastReport.Prepare() line, it takes about 15 seconds to return.
Is this normal? Is there some way to speed this up?
String together 100 invoices being emailed out, and it causes our webpage to time out before it finishes.
We are using FR 2015.3.1 and VS2010.
Thanks
This discussion has been closed.
Comments
We're finding that upgrading our app to 4.5 is proving rather difficult.
in .net 2.0/3.5 : you can use threadpool
I am facing the same problem.
When I tried to generate a particular report ,the fast report.prepare() gets timeout and making service down.
I removed a property in datasource which was not part of api response ,then the solution is up and able to generate report fastly.
I am not sure what is the exact issue behind it. Can someone help to find the root cause?
Hello!
Retrieve the data once at the application level (using Entity Framework, Dapper or ADO.NET) into memory (a DataTable or an IEnumerable<T> collection of models) and register the resulting slice in the report:
// Pre-fetch data into memory DataTable invoiceData = GetInvoiceData(invoiceId); using (var report = new Report()) { report.Load(templateStream); report.RegisterData(invoiceData, ‘Invoices’); report.GetDataSource(‘Invoices’).Enabled = true; report.Prepare(); using (var pdf = new PDFExport()) { report.Export(pdf, pdfStream); }