I am getting Aspose Exception on Excel File generate Using Aspose.Cells .net

Hi Aspose Team,

I am getting below Error while generating excel file and it not coming always.

Aspose.Cells.CellsException: A workbook must contain at least a visible worksheet
at Aspose.Cells.Workbook.Save(String fileName, SaveOptions saveOptions)

We are using Aspose.Cell Version : 1911.9999.113.6862

Can someone check this?

Thanks,
Manish

@manish123,

It looks like your workbook does not have one (visible) worksheet in it. Please note, your Excel workbook (that you are creating) should contain at least one visible worksheet in it, otherwise, you cannot save the workbook or Excel file. This behavior is same as MS Excel where you cannot have a workbook/Excel file without (at least) single (visible) worksheet in it.

If your issue is different and you think it is an issue with the APIs, kindly do share your sample code (runnable) and sample file(s) (if any). We will check your issue soon.

PS. please zip the file(s) prior attaching here.