Share via


dynamicTemplate Property

Returns a String that represents the path and file name of a Dynamic Web Template. An empty String indicates that no Dynamic Web Template is attached. Setting the dynamicTemplate property to an empty string detaches an attached Dynamic Web Template from the page.

expression.dynamicTemplate

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Example

The following example updates the Dynamic Web Template if the specified Dynamic Web Template is attached to the active document. If it isn't already attached, the code attaches it.

Dim objState As DynamicTemplateState

Set objState = Application.CreateDynamicTemplateState

If ActiveDocument.DynamicTemplate = "template.dwt" Then
    ActiveDocument.UpdateDynamicTemplate objState
End If

Applies to | FPHTMLDocument Object | IFPDocument Object