...
Description |
---|
Excerpt |
---|
The WordTemplate object represents a WordWriter template. A WordWriter template is a file created in Microsoft Word that contains merge fields. |
Signature | ||||
---|---|---|---|---|
| ||||
public sealed class WordTemplate
{signature}{signature: |
Signature | ||||||
---|---|---|---|---|---|---|
| }
| |||||
Public NotInheritable Class WordTemplate
{signature}
{remarks}The {{WordTemplate}} object is in the |
Remarks |
---|
The namespace. The object can be referenced as {{
. To minimize typing and errors, import the namespace to the aspx page, and reference the object as {{
, without the namespace prefix. {remarks} {example} If you are coding directly in the .aspx page, following the Page directive, include: {code} |
Example | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
If you are coding directly in the .aspx page, following the Page directive, include:
If you are coding in the "code behind" page \(.aspx.vb or .aspx.cs \), include an {{
or {{
statement at the top of the "code behind" page: {
To create an instance of the WordTemplate object use: {
|
Fields |
---|
...
|
...
|
...
|
...
|
Properties |
---|
Name | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
| |||||||||
|
Methods |
---|
Name | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
| |||||||||
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
| |||
...
|
...
|
...
|
...
| |||
...
|
...
|
...
|
...
...
|
...
|
...
|
...
...
|
...
|
...
|
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
|
...
|
...
|
...
...
|
...
|
...
|
...
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
| |||
...
|
...
|
...
|
...
|
Extensionmethods |
---|
Introducedin | ||||
---|---|---|---|---|
|
Overload | Description |
---|---|
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
|
...
|
...
|
...
|
...
|
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
|
...
|
...
|
...
|
...
|
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
...
...
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...