I´m using Aspose.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!
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");
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.
OK. I save the data to a file - does anyone know if it´s possible to retreive the data from that OLE object file?
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)
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?
Thanks for your inquiry. It seem here is the same problem