Page 1 of 1

Export of a large report in Word

Posted: Thu Jul 06, 2017 12:57 pm
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.

Re: Export of a large report in Word

Posted: Fri Jul 07, 2017 3:45 am
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

Re: Export of a large report in Word

Posted: Mon Jul 10, 2017 10:33 am
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.

Re: Export of a large report in Word

Posted: Mon Jul 10, 2017 8:49 pm
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.