Use of multi-threading on creating reports

Stimulsoft Reports.NET discussion
Post Reply
User avatar
John
Posts: 132
Joined: Tue Feb 01, 2011 3:56 am
Location: England

Use of multi-threading on creating reports

Post by John »

Hallo Support,

I would like to enquire about the use of multi-threading when generating StiReports. Firstly, though, a bit of background to the setup we have.
Our customers use our product over the internet which allows them to create complex reports. The report requests are handled by a WCF service which passes the report data to an assembly in c# which creates the reports themselves. The reports are generated dynamically using various templates created in the designer and then saved as c#. The main StiReport is made up of any number of sub-reports which can include large tables containing icons and also various charts. Once the main report has been rendered it is exported to a byte array and sent to the client.
At the moment we have set the WCF service concurrency mode so that only one report at a time is processed, meaning that the report requests are queued. As more and more customers use the system, the amount of report requests has increased and it is possible that the users will not only have to wait for their own report to be created but also for any reports in the queue to finish.
My question is then whether you support multi-threading for a scenario like this. We only use 2 of the dlls - Stimulsoft.Report.dll and Stimulsoft.Base.dll. Unfortunately, during testing with multi-threading we have had various exceptions appearing in the code, for example on calling StiReport.ExportDocument().


Attachments: screenshot of the out-of-memory exception, caught during testing.
Sample of a pdf which I wished to create using multi-threading.

Please let me know if you generally support multi-threading for your dlls.

Thanks and best regards,

John Kitching
Attachments
report1.pdf
Sample pdf created dynamically
(1.69 MiB) Downloaded 414 times
Screenshot - Error message
Screenshot - Error message
Err1.jpg (200.58 KiB) Viewed 1193 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Use of multi-threading on creating reports

Post by Alex K. »

Hello,

Please check the last prerelease build and let us know about the result.

Thank you.
Post Reply