When I try to open a text file to a xlsx format from Aspose.Cells with this code:
Excel.Workbook workbook = new Excel.Workbook(filePath, new Excel.TxtLoadOptions(Excel.LoadFormat.Xlsx) { SeparatorString = " " });
it crashes with the exception being “The file is corrupted”. This is only happening since yesterday.
I feel like nothing changed that could possibly affect the Aspose.Cells library from functionning correctly.
I have searched quite a bit online, but nothing really relates to a file being corrupted when opening a text file.
I thought at first that the text files were the issue, but I tried creating a new text file with the text: "test test1 test2"
Even with this new file it is still telling me it is corrupted. Also, by removing the parameter
new Excel.TxtLoadOptions(Excel.LoadFormat.Xlsx) { SeparatorString = " " }
It works, but the text only gets put into one cell instead of splitting it between multiple cells.
Any ideas what the issue could be?
Thank you for your help.