Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Syntax 3: For RichTextEdit controls – PB Docs 2022 – PowerBuilder Library

Syntax 3: For RichTextEdit controls – PB Docs 2022

Syntax 3: For RichTextEdit controls

Description

Prints the contents of a RichTextEdit control.

Applies to

RichTextEdit controls

Syntax

Argument

Description

rtename

The name of the RichTextEdit control whose contents you
want to print.

copies

An integer specifying the number of copies you want to
print.

pagerange

A string describing the pages you want to print. To
print all pages, specify an empty string (“”). To specify a
subset of pages, use dashes to specify a range and commas to
separate ranges and individual page numbers, for example,
“1-3” or “2,5,8-10”.

When rtename shares data with a DataWindow, pagerange
refers to pages based on the total number of pages in the
control, not within each instance of the document.

collate

A boolean value indicating whether you want the copies
collated. Values are:

TRUE — Collate copies

FALSE — Do not collate copies

canceldialog

A boolean value indicating whether you want to display a
nonmodal dialog box that allows the user to cancel printing.
Values are:

TRUE — Display the dialog box

FALSE — Do not display the dialog box

Return value

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:

See also

Preview

PrintEx


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x