Control Reference > VSPrinter Control > VSPrinter Properties > ExportFormat Property |
Returns or sets the format of the output file (HTML or RTF).
[form!]VSPrinter.ExportFormat[ = ExportFormatSettings ]
The settings for the ExportFormat property are described below:
Constant |
Value |
Description |
vpxPlainHTML |
0 |
Causes the control to generate only plain HTML. This option results in compact HTML files, but some paragraph formatting options are lost. |
vpxDHTML |
1 |
Causes the control to generate HTML with style tags. This option results in larger HTML files, but all paragraph formatting is included in the document. |
vpxDHTMLExtended |
2 |
Similar to vpxDHTML, but with support for absolutely-positioned text as created by the TextBox method. |
vpxPagedHTML |
3 |
Similar to vpxPlainHTML, but creates several hyperlinked HTML files. |
vpxPagedDHTML |
4 |
Similar to vpxDHTML, but creates several hyperlinked DHTML files. |
vpxRTF |
5 |
Causes the control to generate RTF output. |
vpxRTFExtended |
6 |
Similar to vpxRTF, but with support for absolutely-positioned text as created by the TextBox method. |
The vpxPagedHTML and vpxPagedDHTML settings create several numbered files, one per page. The file names are created by appending a number to the string in the ExportFile property. Each file contains links that allow the user to navigate to the first, previous, next, or last page in the sequence. The links are created using an HTML template which can be customized through the ExportNavBar property. Note that only hard page breaks (created with the NewPage method) affect paged files.
For more details and an example, see the ExportFile property.
ExportFormatSettings (Enumeration)