WordTemplate Code Samples
This is a basic demo that inserts data into a template document that has two merge fields.
Dynamically create a standard business-style #10 envelope with WordTemplate.
Create a calendar document for any month/year combination.
A fax cover sheet with recipient and sender information, created by WordTemplate.
Generate a form letter with WordTemplate.
WordTemplate can insert images from byte arrays or ADO.NET objects into your Word documents.
This demo reads customer data from a database and creates standard-sized 5160 mailing labels. Put some label paper into your printer and see for yourself!
Emulate a Word mail merge using WordTemplate. A document will be created with each recipient's letter on a new page. Take care of all of your mail merge production with one print job.
Emulate a Word mail merge using WordTemplate, featuring new nested repeat block technology. A document will be created with each recipient's letter on a new page, complete with a nested table of orders. Take care of all of your mail merge production with one print job.
Use the new features of the WordTemplate object to create feature-rich reports that were previously only possible with many lines of code. This sample uses nested repeat blocks to produce a report very much like the Word Application Product Catalog.
A generic purchase order document with a header section and an expanding Word table for detail rows.
This demo illustrates some of the formulas available for WordTemplate in OfficeWriter 4.1 and above.