LocalReport / Render slow

F

FloSchmitt

Hello world,
we use Render() of Winforms.Localreport and I considered
significant performance lack in single WinForms.LocalReport object.
Using a WinForms.ReportViewer control and within the LocalReport
property instead, the Render() method finishes up to 10 times faster.

anyone noticed similar performance problems?

More detailed:
We use a variable of type WinForms.LocalReport and call the Render-
method to get separated pages of the report for later printout.
Additionally, we implemented a ReportViewer Control in the Form for
single preview.

For preview, we pass some properties and datasources to the
LocalReport property of the WinForms.Preview object, then call the
Refresh method.
For printing, we create an independent object of type
WinForms.LocalReport and pass the same properties and values to it,
then call the Render method, respectively.
While in some cases the "classical", remote-like Render method,
procudes problems, we call the Render method with callback for
CreateStream.

Even the report is non-trivial, it lasts up to 18 seconds (!!) to
return from Render().
In comparison, the Preview in the ReportViewer control takes about
2 seconds.

Now we changed to create a ReportViewer object and assign the
datasources to it's LocalReport property. So prepared, call the
Winforms.ReportViewer.LocalReport.Render() method to retrieve same in
below 2 seconds.

Has anyone an idea how to explain this behaviour? Maybe I didn't set
some authentification.
Is it possible to set or tweak the GDI usage ?

Thanks for reading all this.
Thanks
Frederik
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top