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

Free Support Forum - aspose.com

Aspose.Words - Access the chart data worksheet with C# .NET


We have a chart “Bar of Pie” in a word document which we can edit its data by using Microsoft Word option “Right Click > Edit Data > Edit Data in Excel”.

We are trying to accomplish the same idea Using Aspose.Words .NET, which is edit the chart data worksheet programmatically. The below doesn’t exist, but that’s what we are trying to accomplish:

Document myDoc = new Document("File.docx");
Node[] shapes = doc.GetChildNodes(NodeType.Shape, true).ToArray();

foreach (Shape shape in shapes)
         var workbook = shape.Chart.ChartDataWorkbook;
         var worksheet = workbook.Worksheets[0];

         worksheet.Cells["F3"].Value = "m";
         worksheet.Cells["F6"].Value = 5;
         worksheet.Cells["F9"].Value = 0.25;

myDoc.Save("File_Updaded.docx"), Aspose.Words.SaveFormat.Docx);

Are you able to help?

Thanks a mil.

Similar topics:

@docarr Unfortunately, such feature is not available yet. The appropriate feature request is logged as WORDSNET-18468. I have linked your request to it. We will keep you informed and let you know once this feature is implemented.

Hi Alexey,

Thanks for coming back to me on this. I see in another thread that this is already in development, any idea when is this expected to be released?

Thanks a mil,


@docarr Unfortunately, currently we cannot provide you a reliable estimate. If everything goes smoothly the feature will be added in 2-3 months. But this is a rough estimate and you cannot 100% rely on it. We will be sure to inform you once it is implemented.

1 Like

Hi @alexey.noskov,

Is there any update on the WORDSNET-18468? Do you know when updated expected date to launch?

Thanks a mil

@docarr Unfortunately, there is no estimate yet. The issue is currently in development. We will keep you updated and let you know once it is ready. Please accept our apologies for your inconvenience.