Word mail merge does not permit data with a nested structure or when other coding methods are too tedious. Content Controls will perhaps fill a void for document generation for smaller custom applications, where specialist products like HotDocs or Windward are too expensive. But unfortunately, this article’s application did not work correctly until version Word 2019.Ĭontent Controls offer a different way of generating documents, but it is not as powerful as products like Windward and HotDocs. Microsoft has made minor improvements to Content Controls in Word 2010, but in Word 2013 they increased its utility for using this for document generation by the inclusion of a Repeating Content Control. You add an XML file to the package and then insert elements from the XML as Content Controls. Content Controls can also be bound/mapped to XML. The various templates supplied with Microsoft Word 2007, 20 include Content Controls which prompt the user to add information from the keyboard. Content Controls are a little like Word Fields. Microsoft introduced Content Controls in Word 2007. However, you should test it thoroughly before putting anything like this into a production setting. You can download the sample files at the end of the article. The same templates and code that I used for the original blog worked adequately this time. more or a variable number of child nodes.īut in Word 2019, it is back in business and appears to be working correctly. I abandoned this article in 2017 when I found that the results were not consistent when the structure of the XML file became more complicated, i.e. I wrote this to apply to Word 2013 / 2016’s Repeating Content Controls. This article shows how to create a complex structured Word 2019 Document from a template using XML as a data source.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |