EPPlus Saving file throws NULL reference exception

我只是一个虾纸丫 提交于 2019-12-12 05:14:44

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/34766781/epplus-saving-file-throws-null-reference-exception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!