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 May 02, 2025 4:15 pm
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);
}
}
}
<a:tbl>
...
<a:tblGrid>
<a:gridCol w="2057400"/>
<a:gridCol w="2006600"/>
<a:gridCol w="2032000"/>
</a:tblGrid>
...
<a:tr h="1143000">
<a:tr h="1143000">
</a:tbl>
tbl.getEGContentRowContent().add(tr);
WARN handleEvent(JaxbValidationEventHandler.java:44) [ERROR] : unexpected element (uri:"http://schemas.openxmlformats.org/wordprocessingml/2006/main", local:"docDefaults")
Total posts 10160 • Total topics 2859 • Total members 2089