Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Fri Feb 12, 2021 6:48 pm

Hi ,

When trying to convert a workbook to excel on .NetCore 3.1, I get the following exception :
"Invalid cell name"

Snippet :

foreach (Worksheet worksheet in wookBook.Worksheets)
{
worksheet.PageSetup.Orientation = PageOrientationType.Landscape;
worksheet.PageSetup.PaperSize = PaperSizeType.PaperA4;
}

wookBook.SaveToStream(outputStream, Spire.Xls.FileFormat.PDF);


Kind regards

bcx_exa.2020
 
Posts: 5
Joined: Thu Oct 15, 2020 7:59 am

Mon Feb 15, 2021 5:45 am

Hello,

Thanks for your inquiry and sorry for the late reply as weekend.

I created an Excel file and did a test with the latest Spire.Xls V11.2.3 but did not reproduce your issue. If you were not using the latest Spire.XLS, I would suggest that you give it a try.

If the issue still happens, please provide us with your input Excel file to help us further investigate your issue. Thanks in advance.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Return to Spire.XLS