outlineLevelRow is broken
See original GitHub issueHi,
I am successfully using outline levels in my project to dynamically hide excel rows. However I would like these rows to be collapsed by default. I have attempted to do this by setting the outlineLevelRow property. A short demo is shown below.
The issue is that when I execute the below demo and open test.xlsx
in Excel 2016, none of the rows are collapsed by default.
Can anyone confirm that this is an issue? I looked a the source code, but there is very little dynamic behavior behind outlineLevelRow, and it may be an issue with Excel 2016.
let Excel = require("exceljs");
let wb = new Excel.Workbook();
let ws = wb.addWorksheet();
ws.properties.outlineLevelRow = 1;
ws.addRow(["one"]);
ws.lastRow.outlineLevel = 0;
ws.addRow(["two"]);
ws.lastRow.outlineLevel = 1;
ws.addRow(["three"]);
ws.lastRow.outlineLevel = 2;
wb.xlsx.writeFile("./test.xlsx");
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
sheetFormatPr (Sheet Format Properties) - c-rex
The possible values for this attribute are defined by the XML Schema unsignedByte datatype. <outlineLevelRow> (Maximum Outline Row). Highest number of outline ...
Read more >exceljs - npm
Read, manipulate and write spreadsheet data and styles to XLSX and JSON. Reverse engineered from Excel spreadsheet files as a project.
Read more >exceljs.dist - UNPKG
255, | outlineLevelRow | 0 | The worksheet row outline level | ... 655, // unmerging the cells breaks the style links. 656,...
Read more >exceljs - npm.io
outlineLevelRow, 0, The worksheet row outline level ... toBe(myFonts.arial); // unmerging the cells breaks the style links worksheet.
Read more >[MS-OI29500]-180427.docx - NET
The standard states that the East Asian typography and line-breaking rules only apply ... on the value of the outlineLevelRow or outlineLevelCol attributes....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, you can make it collapsed by default with row.hidden = true
Any solution?