OleFormatGetRawData Method |
Namespace: Aspose.Words.Drawing
// The document contains linked and embedded objects Document doc = new Document(MyDir + "OLE objects.docx"); foreach (Node shape in doc.GetChildNodes(NodeType.Shape, true)) { // Get access to OLE data OleFormat oleFormat = ((Shape)shape).OleFormat; if (oleFormat != null) { Console.WriteLine($"This is {(oleFormat.IsLink ? "linked" : "embedded")} object"); byte[] oleRawData = oleFormat.GetRawData(); } }