ComponentOne VSView 8.0
Action Property (VSPrinter)

Executes an action such as 'StartDoc' or 'EndDoc'.

Syntax

[form!]VSPrinter.Action[ = ActionSettings ]

Remarks

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.

Data Type

ActionSettings (Enumeration)

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback