Syntax 3 For RichTextEdit controls
Description
Prints the contents of a RichTextEdit control.
Controls
RichTextEdit controls
Syntax
1 |
<span>rtename</span>.<span>Print</span> ( <span>copies</span>, <span>pagerange</span>, <span>collate</span>, <span>canceldialog</span> ) |
Argument |
Description |
---|---|
rtename |
The name of the RichTextEdit control |
copies |
An integer specifying the number of copies |
pagerange |
A string describing the pages you want When rtename shares data with a DataWindow, pagerange refers |
collate |
A boolean value indicating whether you
|
canceldialog |
A boolean value indicating whether you
|
Return Values
Integer. Returns 1 if it succeeds and
-1 if an error occurs.
Usage
When the RichTextEdit control shares data with a DataWindow,
the total number of pages contained in the control is the page count
of the document multiplied by the row count of the DataWindow.
You can specify printed page numbers by including an input
field in the header or footer of your document.
Examples
This statement prints one copy of pages 1 to 5 of
the document in the RichTextEdit control rte_1.
The output is not collated and a dialog box displays to allow the
user to cancel the printing:
1 |
rte_1.<span>Print</span>(1, "1-5", FALSE, TRUE) |