Quantcast
Viewing all articles
Browse latest Browse all 1621

Commented Unassigned: sheet tabs and scrollbars missing when saving with NPOI 2.1 [13093]

Is it just me or does NPOI 2.1 by default disable the scrollbar and tabsheet visibility?

You can enable those in the Excel settings and save it to the file. However, this is quirky behavior.

Thanks

Peter
Comments: ** Comment from web user: PETER_DA **

seems to be caused by your change on May 3 to "ooxml/OpenXmlFormats/Spreadsheet/Workbook/CT_BookViews.cs"

For some reason, this caused NPOI to explitly set the scrollbar and tabsheet visibility to 0, when not specified.

I propose a change to

```
if (!this.showHorizontalScroll)
XmlHelper.WriteAttribute(sw, "showHorizontalScroll", this.showHorizontalScroll, false);
```
where the "false" makes sure it is not written when blank


Viewing all articles
Browse latest Browse all 1621

Trending Articles