Make sure the Developer tab is enabled on your copy of Word. Save your sample XML file to any location so that it can be imported to the template you are about to create. Note 2: The xmlns attribute can contain literally anything you want and it doesn't have to be a URL starting with http. XML file(s) with real data in this same format can later be applied when generating Word document(s) from the template. Note 1: This is will be just a sample XML to create your Word template. This is the value in field3 from the XML file This is the value in field2 from the XML file This is the value in field1 from the XML file For testing I didn't have repeating sections, pictures etc. Preferably start with a less complicated version to get the hang of it. Create a sample XML based on which you can create the Word template for document generation.Part 1: Create your template document for document generation Part 2: Use code in C# to generate documents based on template.Part 1: Create your template document for document generation.Figured out how to use content controls to generate documents and how to populate data from an XML into content controls.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |