PrintEx PowerScript function
Description
Prints the contents of a RichTextEdit control.
Controls
RichTextEdit controls
Syntax
1 |
<span>rtename</span>.<span>PrintEx</span> ( <span></span><span>canceldialog</span> ) |
Argument |
Description |
---|---|
rtename |
The name of the RichTextEdit control |
canceldialog |
A boolean value indicating whether you
|
Return Values
Integer. Returns 1 if it succeeds and
-1 if an error occurs. If the user presses Cancel in the Print dialog
box, PrintEx returns -1. If the user presses
Cancel in the Cancel dialog box, PrintEx returns
1.
Usage
To specify a range of pages and the number of copies to print
and whether pages should be collated, use the Print function.
Examples
This statement prints the document in the RichTextEdit
control rte_1. A Cancel dialog box
displays to allow the user to cancel the printing:
1 |
rte_1.<span>PrintEx</span>(TRUE) |