WordApplication Code Samples
Generate a form letter with WordTemplate, then pass it to WordApplication to have formatting applied based on the user's selections.
WordWriter allows you to insert elements from separate documents. You can use this functionality to copy/paste document elements into different files, or to easily merge Word documents. This sample demonstrates how to merge three different Word documents into one unified document.
An AdventureWorks Product Catalog with formatting, tables, lists, nested data, and images.
Demonstrates usage of the WordApplication and WordTemplate objects together. Generates a nested-data sales report from AdventureWorks data.
Demonstrates how to use regular expressions with WordWriter to easily search and replace text.
Dynamically place custom watermarks on a Word document using the WordApplication object.