Hi jason,
Is there possibility to add outlook message as a OLE object in the existing middle of the document? if it possible means could someone please share the code?
Thanks in Advance,
Indhu.
It is currently Fri Jul 11, 2025 11:50 am
Body body;
RelationshipsPart rp = opcPackage.getRelationshipsPart();
for (Relationship r : rp.getRelationships().getRelationship()) {
Part part = rp.getPart(r);
if (part instanceof JaxbXmlPart) {
Object o = ((JaxbXmlPart) part).getJaxbElement();
if (o instanceof org.docx4j.wml.Document) {
body = ((org.docx4j.wml.Document) o).getBody();
new TraversalUtil(body, this);
}
}
}
WARN handleEvent(JaxbValidationEventHandler.java:44) [ERROR] : unexpected element (uri:"http://schemas.openxmlformats.org/wordprocessingml/2006/main", local:"docDefaults")
Total posts 10182 • Total topics 2865 • Total members 2096