We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WorkbookWriter(WorkSheetWriter) sheems that doesn't support headerFooter and rowBreaks.
Lib version: 3.9.0
const workbookWriterOption1 = <ExcelJS.stream.xlsx.WorkbookWriterOptions>{ stream: new stream.PassThrough(), filename: null, useStyles: true, useSharedStrings: true }; const workBook1 = new ExcelJS.stream.xlsx.WorkbookWriter(workbookWriterOption1); const workSheet1 = workBook1.addWorksheet('ActionCorrespondencesViews', <ExcelJS.AddWorksheetOptions>{ pageSetup: { printTitlesRow: "1:4", printTitlesColumn: "A:A", paperSize: 9, // A4 orientation: 'landscape' }, views: [<ExcelJS.WorksheetViewFrozen>{ state: 'frozen', xSplit: 5, ySplit: 4, topLeftCell: 'F5', activeCell: 'A1' }] }); const headerRow1 = workSheet1.addRow([.........]); workSheet1.lastRow.addPageBreak();
TypeError Exception is caused.
The workaround for exception is the following code. BUT, When printing the generated xlsx with MS-EXCEL, neither HeaderFooter nor rowBreaks was set.
// Workaround : UnhandledPromiseRejectionWarning: TypeError: Cannot set property 'oddFooter' of undefined workSheet1.headerFooter = <ExcelJS.HeaderFooter>{ oddFooter: "&P/&N" }; // Set the footer (default centered) to bold, resulting in: "Page 2 of 16" // Workaround : UnhandledPromiseRejectionWarning: TypeError: Cannot set property 'rowBreaks' of undefined workSheet1.pageSetup["rowBreaks"] = workSheet1["rowBreaks"] = [];
The text was updated successfully, but these errors were encountered:
@master-maintenance1-peer-connect See PR #1232 , Support 'rowbreaks' function, I will submit PR as soon as possible.
Sorry, something went wrong.
Fine! is Pull-request version 4.0 ? And, When it can get by "npm install" ?
@master-maintenance1-peer-connect This requires the approval of members and authors. I don't have permission to merge code and release versions .
The "NPMJS.com release versions" are incorrect. There is a conflict between the versions of the files that could be installed from npmjs.com.
Alanscut
No branches or pull requests
🐛 Bug Report
WorkbookWriter(WorkSheetWriter) sheems that doesn't support headerFooter and rowBreaks.
Lib version: 3.9.0
Steps To Reproduce
The expected behaviour:
TypeError Exception is caused.
Possible solution (optional, but very helpful):
The workaround for exception is the following code.
BUT, When printing the generated xlsx with MS-EXCEL, neither HeaderFooter nor rowBreaks was set.
The text was updated successfully, but these errors were encountered: