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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Excel can't open file when negativeBorderColor and negativeFillColor are used together in conditional formatting rule
add conditionnal formatting with negativeBorderColor and negativeFillColor
worksheet.addConditionalFormatting({ ref: "A1:A10" rules: [ { type: "dataBar", cfvo: [{ type: "min" }, { type: "max" }], color: { argb: "FF50FF50" }, negativeFillColor: { argb: 'FFFF5050' }, border: true, negativeBarBorderColorSameAsPositive: false, borderColor: { argb: "FF50FF50" }, negativeBorderColor: { argb: 'FFFF5050' }, axisColor: { auto: "1"}, } ] });
Excel should be able to open the file ^^
invert the following lines in exceljs/lib/xlsx/xform/sheet/cf-ext/databar-ext-xform.js
this.negativeBorderColorXform.render(xmlStream, model.negativeBorderColor); this.negativeFillColorXform.render(xmlStream, model.negativeFillColor);
it seems that negativeFillColor must appear before negativeBorderColor (at least with excel 2021)
The text was updated successfully, but these errors were encountered:
Fix issue exceljs#2547
9cfcda8
invert order of negativeFillColor and negativeBorderColor
c8cd1c8
No branches or pull requests
馃悰 Bug Report
Excel can't open file when negativeBorderColor and negativeFillColor are used together in conditional formatting rule
Steps To Reproduce
add conditionnal formatting with negativeBorderColor and negativeFillColor
The expected behaviour:
Excel should be able to open the file ^^
Possible solution (optional, but very helpful):
invert the following lines in exceljs/lib/xlsx/xform/sheet/cf-ext/databar-ext-xform.js
it seems that negativeFillColor must appear before negativeBorderColor (at least with excel 2021)
The text was updated successfully, but these errors were encountered: