Hello
We are experiencig a problem just in some cases, this is really strange, when we use the ExportDocument method from de Stireport object.
We generate reports of investment portfolios and in some cases we get the exception:
Index was outside the bounds of the array.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.
With this Stacktrace.
en Stimulsoft.Report.Chart.StiAxisAreaGeom.DrawGridLinesHor(StiContext context, RectangleF rect, IStiGridLinesHor gridLinesHor, Boolean isLeftAxis)
en Stimulsoft.Report.Chart.StiAxisAreaGeom.Draw(StiContext context)
en Stimulsoft.Report.Chart.StiCellGeom.DrawGeom(StiContext context)
en Stimulsoft.Report.Chart.StiAxisAreaViewGeom.DrawChildGeoms(StiContext context)
en Stimulsoft.Report.Chart.StiCellGeom.DrawGeom(StiContext context)
en Stimulsoft.Report.Chart.StiAxisAreaViewGeom.DrawGeom(StiContext context)
en Stimulsoft.Report.Chart.StiCellGeom.DrawChildGeoms(StiContext context)
en Stimulsoft.Report.Chart.StiCellGeom.DrawGeom(StiContext context)
en Stimulsoft.Report.Painters.StiChartGdiPainter.DrawChart(StiChart chart, Graphics g, RectangleF rect, Boolean useMargins, Boolean useBackground)
en Stimulsoft.Report.Painters.StiChartGdiPainter.PaintChart(StiChart chart, Graphics g, RectangleF rect, Boolean drawBorder, Boolean drawFormatting)
en Stimulsoft.Report.Painters.StiChartGdiPainter.GetImage(StiComponent component, Single& zoom, StiExportFormat format)
en Stimulsoft.Report.Chart.StiChart.GetImage(Single& zoom, StiExportFormat format)
en Stimulsoft.Report.Export.StiPdfExportService.ExportPdf1(StiReport report, Stream stream, StiPdfExportSettings settings)
en Stimulsoft.Report.Export.StiPdfExportService.ExportPdf(StiReport report, Stream stream, StiPdfExportSettings settings)
en Stimulsoft.Report.StiReport.ExportDocument(StiExportFormat exportFormat, StiExportService exportService, Stream stream, StiExportSettings settings)
en Stimulsoft.Report.StiReport.ExportDocument(StiExportFormat exportFormat, Stream stream, StiExportSettings settings)
en Tower.Reporting.MultiReport.StimulsoftPortfolioReportBuilder.ExportToPdf(StiReport reportPack) en E:\Trabajo\Tower\dev\web\tags\9.0.0_RELEASE_2014_1\Tower.Reporting\MultiReport\StimulsoftPortfolioReportBuilder.cs:línea 593
i have read some posts here at the forum but in some cases you recomend to use the latest version of your prebuild dlls but in our case we are already using:
Stimulsoft.Base.dll 2014.1.1900.0
Stimulsoft.Report.dll 2014.1.1900.0
Stimulsoft.Report.Web.dll 2014.1.1900.0
Stimulsoft.Report.WebDesign.dll 2014.1.1900.0
I was thinking taht probably it is a performance problem, because maybe the amount of data is too much but there are some portfolios that will generate very large reports and they generate just ok.
The line that give us the problem is the second on here:
this.me = new MemoryStream();
reportPack.ExportDocument(StiExportFormat.Pdf, this.me, settings);
Could you help us with ideas or maybe change render method or anything else?
Thanks a lot
Fiorella Flores.
Index was outside the bounds of the array + ExportDocument(
Re: Index was outside the bounds of the array + ExportDocume
Hello, Fiorella.
Sorry, but we can not help you without a sample.
Please, send us your report template with sample data which reproduces the issue.
Also we need to know export settings that you use.
Thank you.
Sorry, but we can not help you without a sample.
Please, send us your report template with sample data which reproduces the issue.
Also we need to know export settings that you use.
Thank you.