-
-
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
NullReferenceException when copying sheet in some Excel files #346
Comments
The issue is caused by printersettings xmlpart. I'll investigate it later |
Hi Tony, wonder if issue #346 is still there? Had a similar test code as Paul1519 above. Crashes with NullReferenceException when trying to copy sheet. Environment: |
Can you upload your Excel file and let me know which sheet you are copying? @KaarloHirvi |
Thanks for replying. Pls find attached the file. Was trying to copy sheet at [0] |
@KaarloHirvi your issue duplicates with #287. copying sheets with charts will cause null exception. |
Hi Tonyqus, i also have issue now, Crashes with NullReferenceException when trying to copy sheet Environment: |
@cp1319421 I double checked your Excel file. It contains charts. Even if it doesn't throw exception, charts will not be cloned to the new sheet. |
I created a new issue #1338 for this. This issue will be closed |
Starting with version 2.5.1 I'm receiving the below Exception when cloning an existing sheet. This only seems to happen with some Excel files, not all of them (including those created by Microsoft Excel, some of them work). In this post I have attached an example of a file that fails with this exception.
Exception:
Example test code:
`
`
System Info:
Windows 10 Version 1909 (build 18363.778)
Visual Studio Enterprise 2019 version 16.5.4
Tested in both .NET Core 3.1 and .NET Framework 4.8
Microsoft Office Professional Plus 2019 (build 12624.20520) 32 bits
TestInput.xlsx
The text was updated successfully, but these errors were encountered: