renebigot / XlsxReaderWriter

XlsxReaderWriter is an Objective-C library for iPhone / iPad and Mac. It parses and writes MS Excel XLSX files.
MIT License
437 stars 119 forks source link

Result file is corrupted. #113

Open hamduc7 opened 1 year ago

hamduc7 commented 1 year ago

Dear All.

Just open this file, save it then it cannot open in excel.

testfile.xlsx

Codes BRAOfficeDocumentPackage spreadsheet = [BRAOfficeDocumentPackage open:TheFileName]; BRAWorksheet worksheet = spreadsheet.workbook.sheets[0]; [spreadsheet save];

There are some notes on this excel file

  1. The sheet name has space "Box packing information"
  2. The worksheet is protected. Only some cells are editable

In my test, I only open the file then save it, nothing else. But the result file cannot open in Excel app

Anyone help pls?