简体   繁体   中英

EPPlus Saving file throws NULL reference exception

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.

异常消息快照

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM