The error is occurring while merging the two OpenXML word documents having the chart into one of the document.
See original GitHub issueDescription
The error is occurring while merging the two OpenXML word documents having the Chart inside one of the document.
Below is the error. “Unable to cast object of type ‘DocumentFormat.OpenXml.Packaging.ExtendedPart’ to type ‘DocumentFormat.OpenXml.Packaging.EmbeddedPackagePart’.”
Below is the Stack track. The error is occurring from “OpenXmlPowerTools.DocumentBuilder.CopyChartObjects”
at OpenXmlPowerTools.DocumentBuilder.CopyChartObjects(ChartPart oldChart, ChartPart newChart)
at OpenXmlPowerTools.DocumentBuilder.CopyRelatedPartsForContentParts(OpenXmlPart oldContentPart, OpenXmlPart newContentPart, IEnumerable1 newContent, List
1 images)
at OpenXmlPowerTools.DocumentBuilder.AppendDocument(WordprocessingDocument sourceDocument, WordprocessingDocument newDocument, List1 newContent, Boolean keepSection, String insertId, List
1 images)
at OpenXmlPowerTools.DocumentBuilder.BuildDocument(List1 sources, WordprocessingDocument output) at OpenXmlPowerTools.DocumentBuilder.BuildDocument(List
1 sources)
Information
- .NET Target: (.NET Framework 4.6.1)
- DocumentFormat.OpenXml Version: (2.11.3.0 as well as 2.13.0.0)
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (3 by maintainers)
This is using OpenXmlPowerTools - I think you should direct your attention to that library and not this one? Am I missing something?
Since this is not directly related to the SDK, I’m going to close this. Please re-open if I have misunderstood.