Search code examples
ms-wordopenxmlbookmarks

Filling Word template with OpenXML - Bookmarks or ContentControls


I've an application that automatically fills MS Word templates (.dotx) written using COM and Word object model. There are some Bookmarks in the template, that are filled programmatically. Now I'm migrating to OpenXML. Could you please explain me what should I prefer using OpenXML - Bookmarks or Content Controls and why?


Solution

  • Content controls are significantly more resistant to overwriting during document editing. You can use either one with OpenXML without additional complications.