1) Load the file:
- Code: Select all
workbook.LoadFromFile(Path.Combine(config.TemplateFilePath, config.TemplateFileName + "." + config.TemplateExtension), ExcelVersion.Version2013);
2)Save the file:
- Code: Select all
workbook.SaveToFile(Path.Combine(config.OutputFilePath, outputFileName), ExcelVersion.Version2013);
No other changes are done.
As I open the the output file, I receive an error that says that there is a problem with a part of the content of the file and he asks me if i want to recover it.
If I answer yes, another popup opens telling me that the file has been recovered:
Parte rimossa(removed): Parte /xl/drawings/drawing3.xml. (Forma disegno)
Parte ripristinata(recovered): Parte /xl/workbook.xml con errore XML. (Cartella di lavoro) Errore di sistema: -2134138874. Riga 1, colonna 1364.
and then it opens correctly.
By chance anyone of you have already experienced this issue?
Thanks in advance.