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

Free Support Forum - aspose.com

Read diagram data

I´m using Apose.words to extract diagrams from word 2003 documents.
It´s no problem to iterate the embedded MSGraph.Chart.8 objects but I can´t read the data from them.
Anyone who knows how to do it?
Thank´s in advance!
Johan
Code for extracting the objects:

Aspose.Words.Document doc = new Aspose.Words.Document(txtPath.Text);
Aspose.Words.NodeCollection shapes = doc.GetChildNodes(NodeType.Shape, true, false);
int i = 0;
foreach (Shape shape in shapes)
{
   shape.OleFormat.Save(@"C:\dev\Ar20\Word\ole_" + i + ".data");
   i++;
}

Hi
Thanks for your inquiry. Aspose.Words does not allow accessing MSGraph.Chart.8 data. You can only extract embedded OLE objects from the document using Aspose.Words.
Best regards.

OK. I save the data to a file - does anyone know if it´s possible to retreive the data from that OLE object file?

Hi
Thanks for your inquiry. Maybe you can try using Word Automation to achieve this. Maybe you can use Microsoft Graph 11.0 Object Library that is used by PowerPoint, Access, and Word for graphs. (Microsoft.Office.Interop.Graph namespace)
Best regards.

I tried to, but I´m stuck.
When I try to get the values from the Datasheet cells I walways get System.__ComObject.
Do you have any idea how to read from it?

Hi
Thanks for your inquiry. It seem here is the same problem
http://p2p.wrox.com/topic.asp?TOPIC_ID=53235
Best regards.