Exception is thrown when converting specific xlsx to pdf

Hi,



The exception “Input string was not in a correct format” is thrown when converting the attached xlsx to pdf - for Aspose.Cells 17.1.0 and 17.1.1 for .NET 4.0.



C#:

var doc = new Aspose.Cells.Workbook(“ColorFill_3D_Cone_Chart_2003.saved.xlsx”);

doc.Save(“out.pdf”);



Best Regards,

Aleksey.

Hi,


Thanks for your posting and using Aspose.Cells.

We have tested your issue with the following sample code using the latest version and found that Aspose.Cells throws exception on loading your source excel file.

Latest Version Link:
Aspose.Cells for .NET v17.1.1 (.NET 2.0) compiled in .NET Framework 2.0.
Aspose.Cells for .NET v17.1.1 (.NET 4.0) compiled in .NET Framework 4.0.

We have logged this issue in our database for investigation. We will look into it and fix this issue. Once, the issue is resolved or we have some other update for you, we will let you know asap.

This issue has been logged as

  • CELLSNET-45068 - Exception is thrown on loading the excel file

I have also shown the exception thrown by the code for a reference.

C#
var doc = new Aspose.Cells.Workbook(“ColorFill_3D_Cone_Chart_2003.saved.xlsx”);

Exception
System.FormatException was unhandled
HResult=-2146233033
Message=Input string was not in a correct format.
Source=mscorlib
StackTrace:
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Int32.Parse(String s, IFormatProvider provider)
at ​ . (String )
at . ( , )
at . ( )
at . ( , Object )
at . ( , ShapePropertyCollection )
at . ( , )
at . ( , Boolean )
at . ( )
at . ( )
at . ( )
at . (String , Chart )
at . ()
at . ()
at . ( , String , String )
at . ( , String )
at . ()
at . ()
at . ( , LoadOptions )
at . ​ (Stream , LoadOptions , Boolean )
at . ​ (String , LoadOptions )
at Aspose.Cells.Workbook…ctor(String file)
at CELLSNET.Program.f1() in d:\Aspose\Projects\NET\AsposeSolution\CELLSNET\Program.cs:line 358
at CELLSNET.Program.Main(String[] args) in d:\Aspose\Projects\NET\AsposeSolution\CELLSNET\Program.cs:line 33
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.ThreadHelper.ThreadStart_Context(Object state)
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()
InnerException:



Hi again,


This is to update you that we have resolved the problem logged earlier as CELLSNET-45068. We will shortly share the fix here for your testing.

The issues you have found earlier (filed as CELLSNET-45068) have been fixed in Aspose.Cells for .NET 17.2.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.