Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] XYZ #2722

Open
MwM-Mai opened this issue Mar 9, 2024 · 0 comments
Open

[BUG] XYZ #2722

MwM-Mai opened this issue Mar 9, 2024 · 0 comments

Comments

@MwM-Mai
Copy link

MwM-Mai commented Mar 9, 2024

馃悰 Bug Report

When the getRow parameter is 1 or 2, you can modify the style of the whole line 1 or 2, but if the parameter is greater than 2, you can modify the style of the entire workbook, such as the fgColor of the entire workbook of the code is FF4500

Lib version: 4.4.0

Steps To Reproduce

const workbook = new ExcelJS.Workbook();
await workbook.xlsx.readFile(filePath);

const worksheet = workbook.getWorksheet(1);

worksheet.getRow(1).hidden = true;
worksheet.getRow(3).fill = {
     type: 'pattern',
     pattern: 'solid',
     fgColor: { argb: 'FF4500' },
};
await workbook.xlsx.writeFile(filePath)

The expected behaviour:

I hope to modify a certain line of eyes, but can not achieve

Possible solution (optional, but very helpful):

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

No branches or pull requests

1 participant