PrintSetPrinter – PB Docs 126

PrintSetPrinter PowerScript function

Description

Sets the printer
to use for the next print function call. This function does not affect
open jobs.

Syntax

Argument

Description

printername

String for the name of the printer you
want to use

Return Values

Integer. Returns 1 if the function succeeds
and -1 if an error occurs.

Usage

The printername argument must use the
same format as returned by the PrintGetPrinter function.

Examples

This example sets the printer to the first printer
in the list retrieved by the PrintGetPrinters function:

See Also


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