EPPlus Saving file throws NULL reference exception

2019-09-10 02:36发布

Saving Excel file that contains (even an empty) pivot table results in "Null Reference Exception" without any helpful message.

The image that shows the exception message is here below.

Exception Message snapshot

1条回答
欢心
2楼-- · 2019-09-10 03:11

If you create pivot tables with EPPlus, make sure all your columns have headers (naming of the column as first row). Missing headers result in "null reference exception" when trying to save the file, even though all the rest of the application is perfectly functioning. What a devil.

查看更多
登录 后发表回答