Template Property

Official Content
This documentation is valid for:

Indicates the name of the template that will be used for new documents.

Syntax

&DataType.Template = Template

Type Returned:
Character

Where:
DataType
Is the name of the ExcelDocument or WordDocument type variable.
 
Template
Indicates the path and the name of the file which will be used as Template in the next calls to the Open method with a nonexistent file name.
The default value is the empty string. In this case, the default template will be used. 

Description

If a template is defined, but then deleted because it is no longer needed, to use the default template again, a call to this property must be made transferring an empty string as parameter (“”).

Note:
ExcelDocument: The file type can be any type authorized by Excel to be used as Template. If it contains the empty string, the default template will be used.  By default, there is no template assigned and thus, the default  template is used. 

Scope

Extended Data Types: ExcelDocument, WordDocument
Languages: .NET, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro(up to GeneXus X Evolution 3)

See Also 

Open Method
ExcelDocument Data Type
WordDocument Data Type