Generated files are broken
The-Johnson opened this issue · 9 comments
I tried running the test() to generate the example file, but when I try to open it I get:
"Alert:
We found a problem with some content in ’arrayToExcelTest.xlsx’. Do you want us to try to recover as much as we can? If you trust the source of this workbook, click Yes."
I click Yes and Excel tries to recover the file, it opens and gives me this:
"Excel was able to open the file by repairing or removing the unreadable content."
I click on Veiw and get another error message:
"No more new fonts may be applied. Please close some other documents and try again."
No other documents are in fact open. Excel freezes at this point.
Here is the repair log:
"
Repair Result to example1.xml
"
I was once able to view the contents of the file, the invoice sheet was blank, but the other two sheets seemed fine. Most tries my excel becomes unresponsive though.
To try and diagnose this, I simply created a blank book:
let book = XWorkBook()
var sheet = book.NewSheet("Test")
This results in the exact same errors.
I have the same error
The problem seems to be anywhere inside the generated theme1.xml . I have replaced the string with exceljs xml and the error was gone.
Be nice to see this fixed.
nop, this doesn't help me..... (
Is there already some workaround to fix broken Excel file? I still get that error when opening file I created.
Having the same error. Any solution?
Same issue here