We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

File (with smart art) saved with ASPOSE.Cells is not opening with Open XML SDK

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 –

  1. Open XLSX file using ASPOSE.Cells
  2. Carry required operation
  3. Save the file
  4. Open it again in Open XML SDK
  5. Process further
  6. 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

ActiveX control is missing from worksheet after original workbook saved to a new .xlsx file
Pivot Table CalculatedField Sum not working for 10 digit -ve number
Memory Leaks
Aspose cell: ToTiff function Issues (Extended)
Image Increasing in size on each save
Chart series color pallete
Exportdatatable does not give right infos
Cannot remove some rows from a sheet
Pivot's Inserted blank line not in generated PDF
Problem after migration from aspose cells 7.4.2.0
Please throw CellsException when a file contains MS Graph charts
Pie chart label is offset when rendering excel chart to image
Xls->Html convert. Backgrount does not supported
"Do not compress images in file" setting changed
Missing space after conversion to pdf file format
XLSX to PDF time conversions poor
Chart export to image giving a strange line
Header footer regression issue with v7.4.2.3
Converting XLS document to PDF in huge size
Problem when converting right-to-left aligned excel to pdf
Row height isn't maintained after you save an xlsx file in pdf
Converting an XLS file to PDF- but the Charts and Images don't update
Cannot remove some rows from a sheet
Right to Left Problem in Saving as Html or MHT
Pivot table headers are wrong in file converted to pdf
#recursive reference errors
Issue with Transparency property of Charts
12 x OpenOffice 1 x Excel and 1 x rtf conversion to PDF failures
Save/Open as PDF isnt calculating excel formula correctly
12 x OpenOffice 1 x Excel and 1 x rtf conversion to PDF failures
Bug Cells 7.4.3 creates unreadable content in xlsm files
Saving to Excel 2010 XLSM Formats
"Total" text a the bottom of pivot table
Aspose.cells interfering with original vba in spreadsheet
CellsHelper.AddAddInFunction (Only working for smart markers)

Hi,


Thanks for the project with a template file.

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.

Thank you.



Thanks for confirmation. Please keep me posted with ETA when you get to know.


Regards,

Hi,


Yes, sure, once we have any update on it, we will let you know here immediately.

Thank you.

Hi,


Please try our latest fix/version: Aspose.Cells for .NET v7.4.3.1

We have fixed your issue now.

Let us know your feedback.

Thank you.

Thanks. This fixed the issue. When can I see this version in general download section? Is it final release of this DLL?

Regards

Hi,

Thanks for your posting and using Aspose.Cells.

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.

Hi,


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.



Thank you.

Thanks for confirmation.

Regards

The issues you have found earlier (filed as CELLSNET-41635) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.