System.IndexOutOfRangeException: Index was outside the bounds of the array.
Posted: Fri Mar 31, 2023 6:51 am
Hi,
I have reported this issue in a earlier post (in Request#3177134).
We have a few reports that are giving the below error (complete error attached as Exception.txt) when trying to download/rendering the report on the web:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Stimulsoft.Base.Drawing.StiTextDrawing.MeasurableInfo.GetRect(Int32 index)
at Stimulsoft.Base.Drawing.StiTextDrawing.CutLineLimit(String& text, Graphics g, Font font, RectangleD rect, StiTextOptions textOptions, Boolean typographic, Boolean isWindows)
at Stimulsoft.Report.Components.StiComponentDivider.BreakText(Graphics g, RectangleD rect, String& text, Font font, StiTextOptions textOptions, StiTextQuality textQuality, Boolean allowHtmlTags, StiText textComp)
I have attached a sample of one of the reports (attached Singlestage.json and Singlestage.mrt) that's failing for us. Upon our investigation it seems that the size of the report may have something to do with this issue. As if when I start removing some text/characters from the report "it shows up correctly". Also note that this issue looks to be introduced in your one of the recent released (nuget package Stimulsoft.Reports.Web.NetCore) versions:
Last working version: 2022.2.6
First broken version: 2022.3.1
Hope this helps.
Can you please take a look and help resolve the issue here? This is urgent! As a lot of our customers are complaining that they are unable to download the reports.
Thanks
I have reported this issue in a earlier post (in Request#3177134).
We have a few reports that are giving the below error (complete error attached as Exception.txt) when trying to download/rendering the report on the web:
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Stimulsoft.Base.Drawing.StiTextDrawing.MeasurableInfo.GetRect(Int32 index)
at Stimulsoft.Base.Drawing.StiTextDrawing.CutLineLimit(String& text, Graphics g, Font font, RectangleD rect, StiTextOptions textOptions, Boolean typographic, Boolean isWindows)
at Stimulsoft.Report.Components.StiComponentDivider.BreakText(Graphics g, RectangleD rect, String& text, Font font, StiTextOptions textOptions, StiTextQuality textQuality, Boolean allowHtmlTags, StiText textComp)
I have attached a sample of one of the reports (attached Singlestage.json and Singlestage.mrt) that's failing for us. Upon our investigation it seems that the size of the report may have something to do with this issue. As if when I start removing some text/characters from the report "it shows up correctly". Also note that this issue looks to be introduced in your one of the recent released (nuget package Stimulsoft.Reports.Web.NetCore) versions:
Last working version: 2022.2.6
First broken version: 2022.3.1
Hope this helps.
Can you please take a look and help resolve the issue here? This is urgent! As a lot of our customers are complaining that they are unable to download the reports.
Thanks