Error while converting excel to pdf

Hi Team,



We are getting the following error ,when converting excel to pdf:-



Invalid row index… StackTrace : at ?[1]

.?

.??(Stream )

at Aspose.Cells.Workbook.Save(Stream stream, SaveOptions saveOptions)





Please find the attached excel which generates this issue.



Would it be possible to specify the row index/cell mentioned in the error.



Thanks,

Ashish

Hi,

Thanks for your posting and using Aspose.Cells.

We have tested this issue with the following sample code using the latest version:
Aspose.Cells for .NET v8.7.1.3 with your source excel file and were able to observe the exception as per your description.

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-44293 - Invalid row index exception while converting excel to pdf

C#
string path = @“D:\Downloads\sample.xlsm”;

Workbook workbook = new Workbook(path);
workbook.Save(“output.pdf”)

Exception:
Aspose.Cells.CellsException was unhandled
HResult=-2146232832
Message=Invalid row index.
Source=Aspose.Cells
StackTrace:
at Aspose.Cells.Workbook.Save(String fileName, SaveOptions saveOptions)
at Aspose.Cells.Workbook.Save(String fileName)
at CellsNET.Program.f1() in d:\Aspose\Projects\NET\AsposeProject\CellsNET\Program.cs:line 47
at CellsNET.Program.Main(String[] args) in d:\Aspose\Projects\NET\AsposeProject\CellsNET\Program.cs:line 26
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,

Thanks for using Aspose.Cells.

It is to inform you that we have fixed your issue CELLSNET-44293 now. We will soon provide the fix after performing QA and including other enhancements and fixes.

Hi,

Thanks for using Aspose.Cells.

Please download and try the latest fix: Aspose.Cells for .NET v8.7.1.4 and let us know your feedback.

The issues you have found earlier (filed as CELLSNET-44293) have been fixed in this update.


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