Now I can add the comments.xml relation to the /word/_rels/document.xml.rels
but the comments.xml in /word is not created and also
in the [content_types].xml the comment relation will not be overriden.

I add the Relation to a PackagePart which is the document.xml

If i add the relation to the OPCPackage the file is corrupted.

code
commentsPart = PackagingURIHelper.createPartName("/word/comments.xml");
coreDoc.addRelationship(commentsPart, TargetMode.INTERNAL,
"
http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments
");
end of code

2011/1/3 Nick Burch <[email protected]>

> On Mon, 3 Jan 2011, Christian Märzinger wrote:
>
>> And how is this done in POI?
>>
>
> For code examples, take a look at methods like createRelationship in
> POIXMLDocumentPart:
>
> http://svn.apache.org/repos/asf/poi/trunk/src/ooxml/java/org/apache/poi/POIXMLDocumentPart.java
>
> Nick

Reply via email to