Hello ,
I am using Aspose Cells to instanciate a new xlsx file from a xlsx used as a model .
here is my code - the original xlsx file is attached :
Aspose.Cells.Workbook book = new Aspose.Cells.Workbook(file);
Aspose.Cells.Worksheet exportWs = book.Worksheets[0];
/* should work on ws here */
System.IO.FileStream msOffice = new System.IO.FileStream(path + "\\" + FileName, System.IO.FileMode.Create);
Aspose.Cells.SaveFormat saveFrm = Aspose.Cells.SaveFormat.Xlsx;
book.Save(msOffice, saveFrm);
msOffice.Close();
When I open the new file, I get a excel warning :
"Excel found unreadable content ...."
and "Excel completed file level validation and repair. Some parts of Excel completed file level validation and repair. Some parts of .."
and the table is not there anymore ?
I am using Cells 8.6.2 , What am I doing wrong ?
Thanks for your help