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

Free Support Forum - aspose.com

Cast Aspose Word Chart to Aspose Cells Chart

Hi, I have an existing chart from a word document.
Now I want to manipulate is using Aspose cells because there is a functionality that only Aspose cells can do.

@mhore1522,

Please note, both MS Word and MS Excel have different file formats and architectures, so you cannot evaluate and compare APIs of Aspose.Words with Aspose.Cells, neither you can parse/cast objects of one API to other. You need to recreate the chart in MS Excel file format (e.g., XLS/XLSX) using Aspose.Cells APIs accordingly by yourselves.

Do you only need to parse charts from Docx ?
And what will you do after loading word’s chart to Excel?

My scenario is that I have a column chart with 2 series.
My goal is to make the second series to be a line.
I can achieve this on Cells but not in Word.

After making the change on Cell I will put the chart as an image on the Docx.
Or if I can add the chart directly without saving it as an image it would be better.

@mhore1522,

Thanks for the details.

We think you may try inserting Excel file (containing the updated chart) as OLE Object into word document via Aspose.Words API, see the API reference page on how to insert an OLE object into Word document for your reference.