The WordTemplate object represents a WordWriter template. A WordWriter template is a file created in Microsoft Word that contains merge fields.

public sealed class WordTemplate
Public NotInheritable Class WordTemplate

The WordTemplate object is in the SoftArtisans.OfficeWriter.WordWriter namespace. The object can be referenced as SoftArtisans.WordWriter.WordTemplate. To minimize typing and errors, import the namespace to the aspx page, and reference the object as WordTemplate, without the namespace prefix.

If you are coding directly in the .aspx page, following the Page directive, include:

<%@ Import Namespace="SoftArtisans.OfficeWriter.WordWriter" %>

If you are coding in the "code behind" page (.aspx.vb or .aspx.cs), include an Imports or using statement at the top of the "code behind" page:

using SoftArtisans.OfficeWriter.WordWriter;
Imports SoftArtisans.OfficeWriter.WordWriter

To create an instance of the WordTemplate object use:

WordTemplate wt = new WordTemplate();
Dim wt As New WordTemplate()

ALL_ROWS

Name

Description

Bookmarks

ContentType

CultureInfo

DataSourceSeparator

EnableNEXTFields

FieldMarkers

LicenseKey

PreserveFields

SaveExtension

UnlinkIfFields

UpdateIfFields

Version

Name

Description

BookmarkFieldMarkers(String)

Open(String)

Open(System.IO.Stream)

Open(WordApplication, Document)

Process()

Save(String)

Save(System.IO.Stream)

Save(System.Web.HttpResponse)

Save(System.Web.HttpResponse, String, Boolean)

SetDataSource(Object(), String(), String)

SetDataSource(Object(), String())

SetDataSource(System.Data.DataSet, String)

SetDataSource(System.Data.DataSet)

SetDataSource(System.Data.DataTable, String)

SetDataSource(System.Data.DataTable)

SetDataSource(System.Data.IDataReader, String)

SetDataSource(System.Data.IDataReader)

SetDataSource(Object, String)

SetDataSource(System.Collections.IEnumerator, String())

SetDataSource(System.Collections.IEnumerator, String(), String)

SetDataSource(System.Collections.IDictionary)

SetDataSource(System.Collections.IDictionary, String)

SetDataSource(System.Collections.ICollection, String())

SetDataSource(System.Collections.ICollection, String(), String)

SetMailMerge(Object(,), String())

SetMailMerge(Object(,), String(), Int32, Boolean)

SetMailMerge(Object(), String())

SetMailMerge(Object()(), String())

SetMailMerge(Object()(), String(), Int32, Boolean)

SetMailMerge(System.Collections.ICollection)

SetMailMerge(System.Collections.IEnumerator)

SetMailMerge(System.Data.DataSet)

SetMailMerge(System.Data.DataSet, Int32)

SetMailMerge(System.Data.DataTable)

SetMailMerge(System.Data.DataTable, Int32)

SetMailMerge(System.Data.IDataReader)

SetMailMerge(System.Data.IDataReader, Int32)

SetRepeatBlock(System.Data.DataSet, String)

SetRepeatBlock(System.Data.DataSet, String, Int32)

SetRepeatBlock(System.Data.DataTable, String)

SetRepeatBlock(System.Data.DataTable, String, Int32)

SetRepeatBlock(System.Data.IDataReader, String)

SetRepeatBlock(System.Data.IDataReader, String, Int32)

SetRepeatBlock(Object(), String(), String)

SetRepeatBlock(Object(,), String(), String)

SetRepeatBlock(Object(,), String(), String, Int32, Boolean)

SetRepeatBlock(Object()(), String(), String)

SetRepeatBlock(Object()(), String(), String, Int32, Boolean)

SetRepeatBlock(System.Collections.IEnumerator, String)

SetRepeatBlock(System.Collections.IEnumerator, String, String)

SetRepeatBlock(System.Collections.ICollection, String)

SetRepeatBlock(System.Collections.ICollection, String, String)

WordTemplate()

Overload

Description

Open(Microsoft.SharePoint.SPDocumentLibrary, String)

Open(Microsoft.SharePoint.SPListItem, String)

Save(Microsoft.SharePoint.SPDocumentLibrary, String, Boolean)

Save(Microsoft.SharePoint.SPListItem, String)

SetDataSource(Microsoft.SharePoint.SPList, String)

SetDataSource(Microsoft.SharePoint.SPList)

SetDataSource(Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList, String)

SetDataSource(Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList)

SetMailMerge(Microsoft.SharePoint.SPList, Int32)

SetMailMerge(Microsoft.SharePoint.SPList)

SetMailMerge(Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList, Int32)

SetMailMerge(Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList)

SetRepeatBlock(Microsoft.SharePoint.SPList, String, Int32)

SetRepeatBlock(Microsoft.SharePoint.SPList, String)

SetRepeatBlock(Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList, String, Int32)

SetRepeatBlock(Microsoft.SharePoint.SPView, Microsoft.SharePoint.SPList, String)