I’ve successfully embedded an OLE object (in my sample case, an .HTML file) into a Word 2010 docx. However, I don’t see a way to add text.
Thanks for your inquiry. I have tested the scenario and have managed to reproduce the same issue at my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-12221. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.
We apologize for your inconvenience.
Is it resolved? Is there a way to add text .
In fact, I’m quite happy to wait - it was priyanka1012 who bumped the post.
We will inform you via this forum thread once this issue is resolved. Thank you for your patience.
Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.
Thanks for your patience. We have fixed the OLE object icon issue in latest version of Aspose.Words for Java 15.12.0. Please use following overloaded DocumentBuilder.insertOleObject method to achieve your requirements.
Document doc = new Document(MyDir + “input.docx”);<o:p></o:p>
DocumentBuilder builder = new DocumentBuilder(doc);
BufferedImage ieImage = ImageIO.read(new File(MyDir + "in.jpg"));
builder.insertOleObject(MyDir + "input.html", "htmlfile", true, true, ieImage);
doc.save(MyDir + "Out.docx");
This message was posted using Notification2Forum from Downloads module by aspose.notifier.