question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

outlineLevelRow is broken

See original GitHub issue

Hi,

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:open
  • Created 5 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

2reactions
dmnorccommented, Jun 26, 2018

Hi, you can make it collapsed by default with row.hidden = true

0reactions
andreyevykcommented, Nov 28, 2022

Any solution?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found