Hi How do I open a dotx file and save it as an docx. It's now as simple as renaming the extension. What I read you have to change the document type and add an external relationship.
C# example: http://www.notesfor.net/post/2009/05/27/Convert-dotx-to-docx.aspx 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? Johan -- View this message in context: http://apache-poi.1045710.n5.nabble.com/Open-dotx-and-save-as-docx-tp4270908p4270908.html Sent from the POI - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
