SpireException: Arg_IndexOutOfRangeException: at Internal.Runtime.CompilerHelpers.ThrowHelpers.ThrowIndexOutOfRangeException() + 0x24 at sprffo.sprf(XmlTextWriter) + 0x244a at sprffo.spry(XmlTextWriter) + 0xd0 at sprffm.sprb(sprfhn) + 0xd3 at sprffm.spro(sprfhn) + 0x25 at sprffm.spry() + 0x52 at sprffm.sprag() + 0x16e at sprd30.spra(Stream, spre2k) + 0x4f2 at Spire.Xls.AOT.NLWorkbook.Workbook_SaveToStream(IntPtr, IntPtr, IntPtr) + 0x66
Hello, facing this error while saving to stream (SaveToStream) , the code runs fine but it throws this error when it tries to save it. How to fix this issue?