Page.ExportEmailHTML Method
Publisher Developer Reference |
Exports the active page of the publication as an HTML file.
Syntax
expression.ExportEmailHTML(Filename)
expression A variable that represents a Page object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Filename | Required | String | The name of the file to which to export the HTML. |
Remarks
If the name of an existing HTML file is specified, that file is overwritten.
This method can only be used on the active page of the publication.
Example
The following example sets the first page in the document as the active page, and exports that page to a file. (Note that PathToFile must be replaced with a valid file path for this example to work.)
Visual Basic for Applications |
---|
|
See Also