I might be throwing a spanner into the works here but just now I created two
Word files, one was a dotx and the other the exact same file but saved as a
document, as a dotx. Comparing the two files, I found two differences;

In the file [Content_Types.xml] the template file has the following line;

 

whilst in the document, that line has become

 

In the settings.xml file of the document, there is an aditional relationship
identifier;

 

I have not had the time to test out my theory yet, but I do wonder if all
you need to do to convert a template into a document is to modify that line
in content types. There is a way to do this, I think, using the api if I can
get at the ContentTypeManager as that object manages the contents of the
Content_Types.xml file. Will try to have a play and see what I can do - if
anything that is.

Bear in mind that I could be well off of the mark here as my conclusions are
based on examining the differences between just two files.

Yours

Mark B


--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/Open-dotx-and-save-as-docx-tp4270908p4271293.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]

Reply via email to