Problem when loading a report

Stimulsoft Reports.WPF discussion
RobertHerceg
Posts: 7
Joined: Mon May 14, 2012 10:00 am
Location: Slovakia

Problem when loading a report

Post by RobertHerceg »

Version: Stimulsoft.Wpf 2012.1 Trial.

I have a report with one DataBand that is connected to a collection of .NET objects.
The report is displaying three columns.

If the collection is small (up to thousand rows) then the report is loaded relatively fast (it takes up to several seconds).
However, loading a collection of ten thousand objects is really slow.
It can take several minutes to load, the CPU is at 100%, and the application looks dead.
I have also tried the latest prerelease version with the same result.

Is there any way how to improve loading of large data?
Attachments
1835.ReportLargeAmountOfData.zip
(100.75 KiB) Downloaded 360 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Problem when loading a report

Post by HighAley »

Hello.
RobertHerceg wrote:Version: Stimulsoft.Wpf 2012.1 Trial.

I have a report with one DataBand that is connected to a collection of .NET objects.
The report is displaying three columns.

If the collection is small (up to thousand rows) then the report is loaded relatively fast (it takes up to several seconds).
However, loading a collection of ten thousand objects is really slow.
It can take several minutes to load, the CPU is at 100%, and the application looks dead.
I have also tried the latest prerelease version with the same result.

Is there any way how to improve loading of large data?
Please, send us a report template with data for a big report or a sample project to reproduce the issue with a large data.
And we'll try to help you.

Thank you.
RobertHerceg
Posts: 7
Joined: Mon May 14, 2012 10:00 am
Location: Slovakia

Problem when loading a report

Post by RobertHerceg »

I have just attached the test project in VS2010 which demonstrates the problem.
To get it running it will be necessary to update references to Stimusloft binaries (I had to exclude them from the zip as it was too large).

Some notes to the project:
Reports\TestReport.mrt ... this is the stimulsoft report which should be displayed
ViewModel\ReportViewModel .. the view model contains the data for the report
Converters\BusinessReport2StiReportConverter .. converts the ReportViewModel to StiReport before it is loaded
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Problem when loading a report

Post by HighAley »

Hello.

Sorry, we need time to prepare an answer for you.

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Problem when loading a report

Post by HighAley »

Hello.

We couldn't find out the reason of the freezing of the application.
Maybe the cause is your Business Objects or Converter.

Thank you.
RobertHerceg
Posts: 7
Joined: Mon May 14, 2012 10:00 am
Location: Slovakia

Problem when loading a report

Post by RobertHerceg »

Well, the performance profiler in VS has said something else.
It looks like the app is meditating and reaching Nirvana while in the StiReport.Render() method.
See the attached 'call tree' snapshots. Is there any way how to configure DataVirtualization? Something like - load first 10 pages, then another 10 pages and so on ..
Attachments
1876.LargeAmountOfData_Profiler_CallTree_2.PNG
1876.LargeAmountOfData_Profiler_CallTree_2.PNG (161.91 KiB) Viewed 4508 times
1875.LargeAmountOfData_Profiler_CallTree.PNG
1875.LargeAmountOfData_Profiler_CallTree.PNG (147.04 KiB) Viewed 4509 times
RobertHerceg
Posts: 7
Joined: Mon May 14, 2012 10:00 am
Location: Slovakia

Problem when loading a report

Post by RobertHerceg »

In case that you are not able to reproduce the problem. Could you please post a sample code (project) with large amount of data working? Thanks.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Problem when loading a report

Post by HighAley »

Hello.

We've found the reason of your problem.
Tomorrow we'll send you rebuilt report.
Also we'll make code optimization that will be available in our next prerelease build.

Thank you.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Problem when loading a report

Post by Ivan »

Hello,

Please check the report in attachment.

Thank you.
Attachments
1893.TestReportModified.zip
(6.54 KiB) Downloaded 381 times
RobertHerceg
Posts: 7
Joined: Mon May 14, 2012 10:00 am
Location: Slovakia

Problem when loading a report

Post by RobertHerceg »

Hello,

Excellent. This is much better. It still takes some time to display the ten thousand records, but it is much better now.
I will compare the modified report with the original one to find out what has to be changed. I need to modify also other reports that can be displayed on many pages.

Thank you
Post Reply