Skip to content

[BUG] WorksheetReader did not read rowBreaks section #2249

New issue

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

Open
master-maintenance1-peer-connect opened this issue Apr 22, 2023 · 3 comments · May be fixed by #2602
Open

[BUG] WorksheetReader did not read rowBreaks section #2249

master-maintenance1-peer-connect opened this issue Apr 22, 2023 · 3 comments · May be fixed by #2602

Comments

@master-maintenance1-peer-connect

🐛 Bug Report

Lib version: exceljs@4.3.0

Steps To Reproduce

  1. Prepare an xlsx file such that the first sheet contains a rowBreaks(page break).
  2. Watch rowBreaks right after loading the file.
const reader1 = new FileReader();
reader1.readAsArrayBuffer("theRowBreaked1.xlsx")
    .then(xlsxArrayBuffer1 => {
        const workbook1 = new ExcelJS.Workbook();
        return workbook1.xlsx.load(xlsxArrayBuffer1 as ArrayBuffer);
   }).then(workbook2 => {
          console.log( workbook2.worksheets[0].rowBreaks);  // empty !!
});

The expected behaviour:

I expected workbook1.worksheets[0].rowBreaks to expect page break positions in the xlsx file.
But workbook1.worksheets[0].rowBreaks was empty.

@zurmokeeper
Copy link
Contributor

@master-maintenance1-peer-connect Can you provide your excel file?

@kigh-ota kigh-ota linked a pull request Nov 26, 2023 that will close this issue
@kigh-ota
Copy link
Contributor

Submitted a PR to resolve this issue #2602

@RNm-dove
Copy link

RNm-dove commented Apr 9, 2025

Any updates about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants