We're sorry GroupDocs doesn't work properply without JavaScript enabled.

Free Support Forum - groupdocs.com

Raise exception for the spread sheet file

ts1.zip (6.6 KB)
belowe is the code to reproduce :
Console.WriteLine(“Hello World!”);
try
{
string file = @“D:\tmpdel\ts1.xlsx”;
string imgpath = @“c:\tmpimg”;
//Workbook wb = new Workbook();
//wb.Worksheets[0].Cells[0, 0].PutValue(“hello”);
//wb.Save(file);
int pageCount = 0;
using (Viewer viewer = new Viewer(file))
{
//Get document info
ViewInfo info = viewer.GetViewInfo(ViewInfoOptions.ForPngView(false));
pageCount = info.Pages.Count;
//Set options and render document
PngViewOptions options = new PngViewOptions(imgpath);
viewer.View(options);
}
}
catch (Exception ex)
{
throw ex;
}

actually this file is generated by cells api:
Workbook wb = new Workbook();
wb.Worksheets[0].Cells[0, 0].PutValue(“hello”);
wb.Save(file);
I use the v22.9.0 version of groupdoc.viewer

after you import the aspose.cell.dll ,I use the latest v22.11.0
the exception will raise
QQ截图20221117163016.png (6.9 KB)

per my check ,when I use cell.dll of v22.9.0 ,the exception will not raise.
so when will you publish the version of v22.11.0 .
as now ,we already update the version to v22.11.0

@peter.zhou

Can you please share your sample application so we could reproduce this issue on our side?

ConsoleApp1.zip (1.0 KB)

@peter.zhou

Thank you for attaching the sample application. I could reproduce this issue at my side. As workaround try using Aspose.Cells 22.7 instead of Aspose.Cells 22.11.

I need to use the latest version of Aspose.Cells 22.11 ,
when will groupdocs update the version to the latest?

@peter.zhou

In the upcoming version 22.11. It is planned to publish this version by the end of the month.