row height doesn't apply to row
See original GitHub issueDefault row height does not apply to the excel generated.
let infoSheet = this.workbook.addWorksheet("Info", {properties:{ defaultRowHeight: 50 }});
or
infoSheet.properties.defaultRowHeight = 50;
Issue Analytics
- State:
- Created 6 years ago
- Comments:8
Top Results From Across the Web
Wrap text does not adjust row height in Excel - Microsoft Learn
Workaround. To adjust the height of the row to fit all the text in a cell, follow these steps: Select the row you...
Read more >How to change and AutoFit row height in Excel - Ablebits
How to adjust row height in inches · Go to the View tab > Workbook Views group and click the Page Layout button....
Read more >How to fix the height of rows in the table? - GeeksforGeeks
The height attribute is used to set the height of a row. It is added in the <tr> tag. · The height should...
Read more >Why Can't My Row Height Automatically Adjust?!
If the entire row is empty then AutoFit will adjust to your default row height (NOTE: using AutoFit on an empty column will...
Read more >How to make Excel's "Auto Fit Row Height" feature actually ...
Doesn't this method only work if all the columns are the same width? When I resized a column a little wider, all the...
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
I had the same issue, but i find the following code works: sheet.getRow(2).height = 100; sheet.getRow(3).height = 200; …
For other people having this issue: Are you first opening the generated excel files on the Windows version of Excel 2016? I’ve seen something on that platform where Excel will do weird resizing of rows on a worksheet. I painstakingly tracked this down to exceljs not generating a <sheetView/> element, causing Excel to flip. I fixed this by adding an empty view to all of my worksheets via
worksheet.views = [{}]