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: tonyqus **
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: tonyqus **
I know the root cause. This issue only occurs while reading a xlsx template and write back to a output file. The reason is that showHorizontalScroll property is usually not explicitly set in workbook.xml. While parsing the teamplate, we have the following code:
ctObj.showHorizontalScroll = XmlHelper.ReadBool(node.Attributes["showHorizontalScroll"])
This will return false if showHorizontalScroll is not found. But the default value of showHorizontalScroll should be true.