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.

Sat Jan 20, 2018 7:24 pm

Hi, I have this issue with Spire.Xls, I'm using the free version. When I export the document and Excel tries to open it shows the message "The workbook cannot be opened or repaired by Microsoft Excel because is corrupt".
This is the code I'm using to export.
Code: Select all
Workbook workbook = new Workbook();
            workbook.LoadFromFile(Application.StartupPath + @"\formato.xlsx");
            Worksheet worksheet = workbook.Worksheets[0];
            worksheet.InsertRow(8);
            worksheet.Copy(worksheet.Range["A7:I7"], worksheet.Range["A8:I8"], true);


            workbook.SaveToFile(path +".xlsx", ExcelVersion.Version2010);
           
            System.Diagnostics.Process.Start(workbook.FileName);


The file was created in Excel 2016

itzbrainstew
 
Posts: 4
Joined: Tue Jan 02, 2018 7:41 am

Mon Jan 22, 2018 3:49 am

Hello,

Thanks for your post. Please first update to the full version(Spire.XLS Pack Hotfix Version:7.12.144) and try again. If the issue still exists, please share us with your input Excel file.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Wed Jan 24, 2018 10:01 am

Hello,

Greeting from E-iceblue.
Has the hotfix resolved your issue?
Your feedback will be greatly appreciated.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Return to Spire.XLS

cron