-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
i cannot open a file with npoi #1339
Comments
Please provide the xlsx file. |
here are the file |
In styles.xml, there are two tableStyle with same name 'TableStylePreset3_Accent1'. There is nothing wrong with NPOI exception. Please double check your file.
|
I modified the style.xml of the file, and the code runs normally. However, when I open the xlsx file, nothing is done. After clicking Save, this error will appear again when executing NPOI. |
It's very strange, so I mentioned it at the beginning, to open a worksheet, do nothing, just click save, and then close. An error will be reported when executing npoi code |
NPOI Version
2.7.0
File Type
using var fs = new FileStream(filename, FileMode.Open, FileAccess.ReadWrite, FileShare.None);
IWorkbook wb = new XSSFWorkbook(fs);
When I execute the second sentence, the following error occurs:
When I open the workbook and do nothing and click save, an error occurs when I execute the above code. When I deleted all the blank lines below, it returned to normal.
The text was updated successfully, but these errors were encountered: