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

PrintDataWindow – PB Docs 2019 – PowerBuilder Library

PrintDataWindow – PB Docs 2019

PrintDataWindow

PowerScript function

Description

Prints the contents of a DataWindow control or DataStore as a print
job.

Syntax

Argument

Description

printjobnumber

The number the PrintOpen function assigned to the print
job

dwcontrol

The name of the DataWindow control, child DataWindow, or
DataStore containing the DataWindow object you want to
print

Return value

Integer. Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, PrintDataWindow returns null.

Usage

Do not use PrintDataWindow with any Print functions except PrintOpen
and PrintClose.

When you use PrintDataWindow with PrintOpen and PrintClose, you can
print several DataWindows in one print job. The information in each
DataWindow control starts printing on a new page.

When you print a DataWindow using PrintDataWindow, PowerBuilder uses
the fonts and layout specified in the computer’s printer setup, not the
fonts and layout specified in the DataWindow. The PrintDefineFont and
PrintSetFont methods also have no effect.

When the DataWindow’s presentation style is RichTextEdit, each row
begins a new page in the printed output.

For information on skipping individual pages with return codes in
the PrintPage event, see the Print
function.

Examples

These statements send the contents of three DataWindow controls to
the current printer in a single print job:

See also

Print

PrintClose

PrintOpen


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