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.
After an initial test, I have observed the issue as you have mentioned by running your project with template file(s). I got the exception by Open XML SDK while opening the output file (by Aspose.Cells), I am using latest version i.e. Aspose.Cells for .NET v7.4.3: 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 logged a ticket with an id “CELLSNET-41635” for your issue. We will look into your issue to figure it out soon.
It is good to know that your issue is fixed. This is a minor release. Minor release can be used for production use. This fix will also be included in the Major release which will be available in general download section.
You can use minor release without any issue in your production environment.
Moreover, we normally release our official version of the product (in Downloads module) once in a month (our next official version will be at the end of May 2013), which always includes all the previous fixes and enhancements.
But as my fellow colleague told you that you may use the latest fix v7.4.3.1 for your production usage, it includes all the functionality/features and fixes from v7.4.3 till that fix.