Printing XLSX using ExcelJS #2868
Replies: 2 comments 1 reply
-
Try using fitToPage, fitToWidth, fitToHeight Properties. https://github.com/exceljs/exceljs#page-setup |
Beta Was this translation helpful? Give feedback.
1 reply
-
// Add page breaks on rows
breaks.forEach(break => {
worksheet.getRow(break).addPageBreak();
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello i am working an XLSX and i need to setup my xlsx so when i print it i get a page with N rows per page (N is a variable i pass)
imagine i have 144 rows and N = 33:
first page = 33 rows
second page = 33 rows
third page = 33 rows
forth page = 33 rows
last page = 12 rows
i tried everything with rowBreaks but it didn't work any suggestions ?
Beta Was this translation helpful? Give feedback.
All reactions