我通过EPPlus创建了两个工作表的excel文件:数据和数据图表。 Excel可以无任何错误地打开文件。Excel打开由EPPlus创建的文件,出现错误
现在,我读取(通过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>
这些错误是非常通用的,所以不会很遗憾地告诉我们。最好的做法是粘贴创建它的代码,然后重新打开/保存它。 – Ernie
创建示例https://github.com/constructor-igor/TechSugar/tree/master/EPPlusSamples,但我无法通过示例重现问题。现在,我无法发布产品代码, – constructor
难以诊断它是否不可重现。也许发布问题文件? – Ernie