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 Apr 04, 2025 10:12 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);
}
}
}
java.lang.IllegalArgumentException: obj parameter must not be null
at javax.xml.bind.helpers.AbstractMarshallerImpl.checkNotNull(AbstractMarshallerImpl.java:398)
at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:90)
at org.docx4j.XmlUtils.marshaltoW3CDomDocument(XmlUtils.java:492)
at org.docx4j.XmlUtils.marshaltoW3CDomDocument(XmlUtils.java:474)
at org.docx4j.openpackaging.parts.CustomXmlDataStoragePart.applyBindings(CustomXmlDataStoragePart.java:480)
<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 10157 • Total topics 2857 • Total members 2087