exportService.ExportPdfAsync();throwing error for large file

Stimulsoft Reports.UWP discussion
Locked
Vamshi
Posts: 9
Joined: Mon May 25, 2015 11:41 am

exportService.ExportPdfAsync();throwing error for large file

Post by Vamshi »

Hi,

I am calling the "exportService.ExportPdfAsync()" method with respective parameters to export the pdf file.
However it is working fine for small reports , the same code snippet is not working for large size reports.

The inner exception is always null.
Exception Message : Index was outside the bounds of the array
Stack Trace details :
at System.Text.StringBuilder.get_Chars(Int32 index)
at Stimulsoft.Report.Export.StiPdfExportService.RenderText(StiPdfData pp)
at Stimulsoft.Report.Export.StiPdfExportService.<ExportPdfAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at NextGenValidator.Report.UI.Common.ReportHelper.<ExportSummaryReportToPDF>d__13.MoveNext()

The same code is working for small reports , and same code is not working for large reports.
Can you help on the same
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: exportService.ExportPdfAsync();throwing error for large

Post by HighAley »

Hello.

Could you specify how large is your report?
Do you use images or Rich Text components?

Thank you.
Vamshi
Posts: 9
Joined: Mon May 25, 2015 11:41 am

Re: exportService.ExportPdfAsync();throwing error for large

Post by Vamshi »

Could you specify how large is your report?
In one report the generated pages are 9
In another report the generated pages are 800 (these are generated from two different .mrt files).
Do you use images or Rich Text components?
No.
The scenario :
1. In reportviewer , we are able to see the all generated data , when user clicks on export to pdf in report viewer, then the exception occurs.
2. Without propagating report in report viewer, programmatically passing the respective object as parameter to "exportService.ExportPdfAsync()" occurs the exception.
Note : In above both cases, some files are working and some are not working.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: exportService.ExportPdfAsync();throwing error for large

Post by HighAley »

Hello.

Please, send us a sample working project, which reproduces the issue.
We need to reproduce the issue to help you.

Thank you.
Vamshi
Posts: 9
Joined: Mon May 25, 2015 11:41 am

Re: exportService.ExportPdfAsync();throwing error for large

Post by Vamshi »

Hi,
the sample project can not be sent.
Is it possible for you to share my screen ? So that you can help me on this way.

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

Re: exportService.ExportPdfAsync();throwing error for large

Post by HighAley »

Hello.

The WirRT technology has many restrictions and limitations that don't allow to create large reports. It's impossible to implement some features and optimizations there.
We need to attach our source code to your sample project to know where the error occurs.
Without this we can't answer your question.

Thank you.
Locked