Hi,
I am using the below code to link an OLE object to docx.
But when I open docx in MS-WORD and click on OLE object , i am getting the error that object is corrupt, but the same thing when I am doing manually in MS-WORD is working fine. I have checked document.xml after extracting and its showing <o:OLEObject Type=“Embed” ProgID=“Word.Document.8” ShapeID="_x0000_i1025" DrawAspect=“Icon” ObjectID="_0" r:id=“rId5”/>
Please look into it
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Shape oleObject = builder.insertOleObject("http://localhost/a.php", true, false, null);
doc.save("/home/madhur/Documents/yatin_Resume6.docx");