Spire.XLS for .NET is a professional Excel .NET library that can be used to any type of .NET( C#, VB.NET, ASP.NET, .NET Core) application and Java (J2SE and J2EE) application.

Tue Jan 02, 2018 9:38 am

My program creates a blank document or something like that..
this is my code:


Code: Select all
  Workbook workbook = new Workbook();
            workbook.LoadFromFile(Application.StartupPath + @"\formato12.xlsx");
            Worksheet sheet = workbook.Worksheets[0];
            sheet.Range["C9"].Text = "Prueba1";
             workbook.SaveToFile("sample7.xlsx", ExcelVersion.Version2013);
            System.Diagnostics.Process.Start("sample7.xlsx");


And when it suppose to open the create document it opens a blank excel document
help please.

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

Tue Jan 02, 2018 9:53 am

Hello,

Thanks for your inquiry.
Sorry I didn't reproduce the issue on my side. Could you please share your sample document for a better investigation?

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Tue Jan 02, 2018 11:54 pm

It creates te document if I use the excel version 97 to 2003 with the same code I post before and it creates the file with an error but I still can see the file in Excel, but when I use a different function like replace words in the document it creates a blank file.
This happends with different Excel files.

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

Wed Jan 03, 2018 2:16 am

Hello,

Thanks for your reply.
Sorry I didn't encounter the issue with 97 to 2003 xls file. Since every document has a different data structure, it's hard to say whether the issue lies without the related document. As a result, please send your sample documents which have the issue to us(support@e-iceblue.com).

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Return to Spire.XLS