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 Wed Jun 18, 2025 9:10 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 10181 • Total topics 2864 • Total members 2095