User`s guide
Create Document Part Template Libraries
13-33
Create Document Part Template Libraries
In this section...
“Create a Document Part Template Library in a Microsoft Word Template File” on page
13-33
“Create a Document Part Template Library in an HTML Template File” on page
13-35
A document part template library is a set of document part templates stored by name in
another template. You can create a document part based on a template stored in a library
by specifying the name of the template in the document part constructor. Document part
template libraries allow you to store all the templates for a report in a single template
file, for example, the main template file of a report.
Create a Document Part Template Library in a Microsoft Word Template
File
You can use the Quick Part Gallery in Word to create a document part template library
in the main template of a report. A Quick Part Gallery is a collection of reusable pieces
of preformatted content, called quick parts, that is stored in the document. You can use
quick parts as templates for DOM DocumentPart objects.
1
Open the Word template in which you want to create the document part template.
2
In the template, create the Word content to serve as a prototype for the document
part template. (You will delete the prototype after copying it to the parent template
Quick Part Gallery.) The document part template content that you create can
contain holes and page layout sections, as well as other types of Word content. For
example: