RangeError: Invalid array length
Posted: Fri Nov 08, 2024 12:36 pm
I receive this error (RangeError: Invalid array length) when calling report.savePackedDocumentToByteArray() on a report with around 500 rendered pages.
report.saveDocumentToJsonString() or report.saveDocumentFile() are working fine.
Stack trace looks like this:
Version 2024.3.3, but I can confir that the same error occurs on latest version also.
Is any other way to obtain the Byte array of the rendered report ?
Thank you.
report.saveDocumentToJsonString() or report.saveDocumentFile() are working fine.
Stack trace looks like this:
Code: Select all
Exception has occurred: RangeError: Invalid array length
at String.map (<anonymous>)
at Q.toBytesArray (...\node_modules\stimulsoft-reports-js\Scripts\stimulsoft.reports.js:13:169724)
at $S.getBytes (...\node_modules\stimulsoft-reports-js\Scripts\stimulsoft.reports.js:14:141527)
at SM.savePackedDocumentToByteArray (...\node_modules\stimulsoft-reports-js\Scripts\stimulsoft.reports.js:45:117212)
Is any other way to obtain the Byte array of the rendered report ?
Thank you.