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
exportService.ExportPdfAsync();throwing error for large file
Re: exportService.ExportPdfAsync();throwing error for large
Hello.
Could you specify how large is your report?
Do you use images or Rich Text components?
Thank you.
Could you specify how large is your report?
Do you use images or Rich Text components?
Thank you.
Re: exportService.ExportPdfAsync();throwing error for large
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.
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.
Re: exportService.ExportPdfAsync();throwing error for large
Hello.
Please, send us a sample working project, which reproduces the issue.
We need to reproduce the issue to help you.
Thank you.
Please, send us a sample working project, which reproduces the issue.
We need to reproduce the issue to help you.
Thank you.
Re: exportService.ExportPdfAsync();throwing error for large
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
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
Re: exportService.ExportPdfAsync();throwing error for large
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.
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.