exportService.ExportPdfAsync();throwing error for large file
Posted: Mon May 25, 2015 12:23 pm
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
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