-
Notifications
You must be signed in to change notification settings - Fork 273
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
StyleXmlHelper bug #556
Comments
#486 |
Can you please provide some code to reproduce your issue. Please also provide a workbook if necessary. |
styles.xml is like this, ExcelStyles.cs :
} ExcelXfsXml.cs : When there is no @Xfid field, the default value of int.MinValue will be used, which will cause a series of problems later |
XmlHelper.cs: DefaultValue here |
This is just fragments of code. I can not reproduce the issue from this. Please provide full code and a workbook that I can test this with. |
I am a company network and cannot provide you with a workbook。 |
You can directly modify Xfid to int.MinValue, then open and save the workbook, this problem should occur |
Why is the default value here set to int.MinValue |
This is beyond the support we provide here. If you have a commercial license please provide your workbook inside our support portal. |
We are a small tool for internal use, not for commercial use |
If you are a commercial company you still need a license for internal use. |
Ok i got it |
StyleXmlHelper.cs
line 37 internal int newID = int.MinValue;
Why is int.minvalue set here?
It may cause xfsid to be negative after save。
ExcelStyle.cs
line 60 Numberformat = new ExcelNumberFormat(styles, ChangedEvent, PositionID, Address, _xfs.NumberFormatId);
_xfs maybe null。
The text was updated successfully, but these errors were encountered: