Skip to content
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

fileRecoveryPr should not appear after extLst #589

Closed
1000111001 opened this issue Jul 1, 2021 · 3 comments
Closed

fileRecoveryPr should not appear after extLst #589

1000111001 opened this issue Jul 1, 2021 · 3 comments
Labels
duplicate file_error file format generation/writing issue
Milestone

Comments

@1000111001
Copy link

Just open and then save the file, I got a broken xlsx (open by Office 365 Microsoft Excel, while WPS or LibbreOffice is ok);
The order between extLst and fileRecoveryPr maybe not correct;

if (this.extLst != null)
this.extLst.Write(sw, "extLst");
if (this.fileRecoveryPr != null)
{
foreach (CT_FileRecoveryPr x in this.fileRecoveryPr)
{
x.Write(sw, "fileRecoveryPr");
}
}

I change the order and the problem is gone;

Here's the source file:
test.xlsx
and then the output file:
test_output.xlsx

@tonyqus
Copy link
Member

tonyqus commented Jul 3, 2021

duplicate with #402

@tonyqus tonyqus closed this as completed Jul 3, 2021
@tonyqus tonyqus added this to the NPOI 2.5.5 milestone Jul 3, 2021
@tonyqus tonyqus changed the title Version 2.5.3 make corrupted xlsx fileRecoveryPr should not appear after extLst Jul 3, 2021
@tonyqus
Copy link
Member

tonyqus commented Jul 3, 2021

This issue has been fixed and it will release with NPOI 2.5.5

@tonyqus tonyqus added the file_error file format generation/writing issue label Jul 3, 2021
@1000111001
Copy link
Author

This issue has been fixed and it will release with NPOI 2.5.5

Ok, thx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate file_error file format generation/writing issue
Projects
None yet
Development

No branches or pull requests

2 participants