Free Support Forum - groupdocs.com

Excel spreadsheet conversion failing with System.ArgumentOutOfRangeException


#1

Hi,

We’ve created an Excel spreadsheet using the one of the Excel Templates provided with Excel. I’ve tried converting this to HTML and PDF but the conversion process is throwing an exception.

We’re using v18.2 of GroupDocs.Conversion. I’ve attached the spreadsheet we’re using for our tests.test trend budget.zip (18.0 KB)

{“Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: startIndex”}

This is the stack trace;

at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.BitConverter.ToInt16(Byte[] value, Int32 startIndex)
at ​ . (Byte[] , Int32 , Boolean& )
at ​ . (Border , Byte[] , Int32 )
at ​ . ( ​ )
at ​ . ( ​ )
at ​ . (MemoryStream )
at ​ . ( )
at ​ . ( )
at Aspose.Cells.Workbook. (Stream , LoadOptions , Boolean )
at . (LoadOptions )
at . (FileDescription , Stream , LoadOptions , SaveOptions )
at . (Stream , LoadOptions , SaveOptions )
at GroupDocs.Conversion.Handler.ConversionHandler.Convert(Stream fileStream, SaveOptions saveOptions)
at ConvertFileTest.Program.Main(String[] args) in C:\Visual Studio 2015 Projects\Architecture\Prototypes\DoCCS.Converter\ConvertFileTest\Program.cs:line 38
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()


#2

@axdaws,

Thank you for your inquiry.
We successfully reproduced this issue at our end. Hence, we’ve logged it in our internal issue tracking system with ID:CONVERSIONNET-2430. As soon as we have any further information on this issue, we’ll notify you.


#3

@axdaws,

We’d like to inform you that CONVERSIONNET-2430 is now fixed in GroupDocs.Conversion for .NET 18.5. Please download latest version of the API and share your feedback.