Control Reference > VSPrinter Control > VSPrinter Properties > Action Property (VSPrinter) |
Executes an action such as 'StartDoc' or 'EndDoc'.
[form!]VSPrinter.Action[ = ActionSettings ]
This property was initially implemented in the VBX version of the VSPrinter control, which did not support custom methods. It is still supported for compatibility with older projects, but there are equivalent methods for most of its settings. When possible, the methods should be used instead of the Action property, because they provide more options and result in clearer code.
The settings for the Action property are described below:
Constant |
Value |
Description |
paNone |
0 |
No effect. |
paPrintFile |
1 |
Prints the file specified by the FileName property. |
paChoosePrintFile |
2 |
Shows a printer setup dialog, then prints the file specified by the FileName property. |
paStartDoc |
3 |
Equivalent to the StartDoc method. |
paNewPage |
4 |
Equivalent to the NewPage method. |
paNewCol |
5 |
Equivalent to the NewColumn method. |
paEndDoc |
6 |
Equivalent to the EndDoc method. |
paAbortDoc |
7 |
Equivalent to the KillDoc method. |
paPrintPage |
8 |
Prints the current preview page (set by the PreviewPage property). |
paChoosePrintPage |
9 |
Shows a printer setup dialog, then prints the current preview page. |
paCopyPage |
10 |
Copies the current preview page to the clipboard. |
paPrintAll |
11 |
Equivalent to the PrintDoc method. |
paChoosePrintAll |
12 |
Shows a printer setup dialog, then prints the document being previewed. |
paChoosePrinter |
13 |
Equivalent to the PrintDialog method. |
paPageSetup |
14 |
Equivalent to the PrintDialog method. |
ActionSettings (Enumeration)