You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The title says it all. Here is code to reproduce the issue. The comments describe the fail/pass cases.
Node v8.9.4
xlsx: 0.12.0
//Fail: If an underscore is used as the beginning character in the sheet name and the name length > 22, then it fails.//Pass1: If an underscore is used as the beginning character in the sheet name and the length <= 22, then it passes.//Pass2: If an no underscore is used as the beginning character in the sheet name and the length > 22, then it passes.//NOTE: Sheet name limit is 31 which is not in question for this issue.//Failure means that when opening the file in MS Excel (2016), it states: "We found a problem with some content in 'fail.xlsx'. Do you want us to try to recover..."//Repair message: Repaired Records: Worksheet properties from /xl/worksheets/sheet1.xml partconstxlsx=require("xlsx");varsheetName_Fail="_UnderscoreStart_moreThan22Char";varsheetName_Pass1="_UndStart_less23Chars";varsheetName_Pass2="noUnderscoreStart_moreTh22Char";testCreateWorkbook(sheetName_Fail,"fail.xlsx");testCreateWorkbook(sheetName_Pass1,"pass1.xlsx");testCreateWorkbook(sheetName_Pass2,"pass2.xlsx");functiontestCreateWorkbook(sheetName,fileName){constwb=xlsx.utils.book_new();constdata=[[]];constsheet=xlsx.utils.aoa_to_sheet(data);xlsx.utils.book_append_sheet(wb,sheet,sheetName);xlsx.writeFile(wb,__dirname+"/"+fileName);}
The text was updated successfully, but these errors were encountered:
- BIFF5 write number formats and other features
- XLSX/XLSB/BIFF8 Suppress "Number stored as Text" errors
- codename awareness (fixesSheetJS#992 h/t @samusstrike)
- updated CFB to 1.0.3
- demo refresh
The title says it all. Here is code to reproduce the issue. The comments describe the fail/pass cases.
Node v8.9.4
xlsx: 0.12.0
The text was updated successfully, but these errors were encountered: