On Wed, 30 Mar 2011, johsve339 wrote:
I tried to add the relationsip with OPCPackage like:

OPCPackage pkg = OPCPackage.open(filepath);
                pkg.addExternalRelationship(filepath,
"http://schemas.openxmlformats.org/officeDocument/2006/relationships/attachedTemplate";);

But how to change the document type property?

Call setContentType on the PackagePart you want to be different, and I think that'll do it

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to