【发布时间】:2016-08-18 07:45:37
【问题描述】:
我通过 EPPlus 创建了带有 2 张工作表的 excel 文件:数据和数据图表。 Excel 可以毫无错误地打开文件。
现在,我读取(通过 EPPlus)并再次保存文件,没有任何更改,Excel 打开文件并显示错误消息并且不显示图表。
xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<recoveryLog xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><logFileName>error118920_01.xml</logFileName><summary>Errors were detected in file 'file.xlsx'</summary><removedParts summary="Following is a list of removed parts:"><removedPart>Removed Part: /xl/drawings/drawing1.xml part. (Drawing shape)</removedPart></removedParts></recoveryLog>
【问题讨论】:
-
这些错误非常普遍,因此不会告诉我们太多遗憾。最好的办法是粘贴创建它的代码,然后重新打开/保存它。
-
创建示例 github.com/constructor-igor/TechSugar/tree/master/EPPlusSamples 但我无法在示例的帮助下重现该问题。目前,我无法发布生产代码,
-
很难诊断它是否不可重现。也许发布问题文件?
-
添加测试(包括源和有问题的目标excel文件)ProductionFile_OpenSave_CannotBeOpened in github.com/constructor-igor/TechSugar/tree/master/EPPlusSamples/…