Hi,
I am using combination of ASPOSE.Cells and Open XML Format SDK for XLSX file processing.
ASPOSE.Cells version - 7.4.2.0
Open XML Format SDK version - 2.5
My use case is –
- Open XLSX file using ASPOSE.Cells
- Carry required operation
- Save the file
- Open it again in Open XML SDK
- Process further
- Save the file
When I carry above steps for XLSX file that contains smart art, Open XML SDK is giving following error while opening file at step 4 –
DocumentFormat.OpenXml.Packaging.OpenXmlPackageException: The document cannot be opened because there is an invalid part with an unexpected content type.
[Part Uri=/xl/diagrams/drawing1.xml],
[Content Type=application/xml],
[Expected Content Type=application/vnd.ms-office.drawingml.diagramDrawing+xml].
I have attached sample code written in Visual Studio 2010 that reproduces this issue.
Any help towards solving this error is appreciated.
Regards,
Bhavesh