I'm looking at creating a simple word processor for developing a specific document type. At present I am using MS Word to create the documents. Going forward I would like to still be able to use MS Word as a viewer.
So what I thought was:
create a custom xmlFolder in the root of a dotx file (as described in www.experts-exchange.com/Q_24284711)
This seems to work (after figuring out there must not be any spaces in filenames AND each file must have an .xlm extension)
This solution seems great. My application would be able to treat the word file as a 'zip-like' archive, go straight to my target folder allowing me to edit etc. I can then render my data as a word document allowing it to also open in MS Word. Problem is that if someone opens AND saves the file in MS Word my custom folder is deleted. Opening the file and then closing it seems to have no impact; it's saving that seems to be the problem.
I think this is this related to:
But I thought I was doing something different than using xml tags...
- what is my best option for embedding my own data in a file and being able to open that file in MS Word?
- should I use a different format, e.g. Libre or OpenOffice, that would still open in MS Word?
Interested to know what pitfalls I might expect.
Look forward to your thoughts