TroyPilewski
TroyPilewski

Reputation: 369

Dynamic Content Controls with embedded XML to the .docm file

How can you dynamically populate a drop-down content control from an embedded XML within the (.docm) file. I know that you can appended the (.zip) file extension to an office document and create a custom UI as an add-in; I would like to use the same concept and insert a XML file that holds a list of items and populate that list into a drop-down content control inside a word document when the word document is opened.

Upvotes: 0

Views: 308

Answers (1)

Alex Butenko
Alex Butenko

Reputation: 3764

MS Word tends to silently remove everything it cannot understand. So I'm pretty sure it will remove your file from document file. And it's not even considering thet you want to access a file, already opened in Word. So I think it is really bad idea. If you want to store some hidden info in your file - there is only one legit way - customXMLParts.

And considering this answer, I think customXMLParts exist exatly for your purpose.

Upvotes: 1

Related Questions