Export of a large report in Word

Stimulsoft Reports.WEB discussion
Post Reply
vladimir.mirchevski
Posts: 18
Joined: Wed Jan 28, 2015 11:09 am

Export of a large report in Word

Post by vladimir.mirchevski »

We have a large report that we are trying go export in Word.

Code: Select all

            report.Render();
            var settings = new Stimulsoft.Report.Export.StiWord2007ExportSettings();            
            var service = new Stimulsoft.Report.Export.StiWord2007ExportService();
            var stream = new MemoryStream();
            service.ExportWord(report, stream, settings);
The report renders about 1700 pages and also has picture on almost every page.

On the method ExportWord we get "An exception of type 'System.ArgumentException' occurred in System.Drawing.dll but was not handled in user code".

Is there any way we can get this report to work? We are also expecting to generate larger reports.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Re: Export of a large report in Word

Post by Edward »

Hi Vladimir,

Does the exception depend on the amount of pages? So are you getting the error when there are just a couple of pages?

And is it possible to reproduce the problem with the report template that does not require lots of data by setting the DataBand.CountData property to a big number like 1700 for example and to attach the mrt report template without requirements for a sample data to this ticket, so we are able to reproduce the problem?

Thank you,
Edward
vladimir.mirchevski
Posts: 18
Joined: Wed Jan 28, 2015 11:09 am

Re: Export of a large report in Word

Post by vladimir.mirchevski »

The exception does depend on the amount of pages. I can export smaller reports and I can export the same report without the pictures.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Export of a large report in Word

Post by Alex K. »

Hello,

Please clarify which version are you use?

Please try to check the last release. If the issue still present, send us a simple report with test data which reproduces the issue for analysis.

Thank you.
Post Reply