PrintSetPrinter PowerScript function
Description
Sets the printer
to use for the next print function call. This function does not affect
open jobs.
Syntax
1 |
<span>PrintSetPrinter</span> ( <span>printername</span> ) |
Argument |
Description |
---|---|
printername |
String for the name of the printer you |
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:
1 |
long ll_place |
1 |
string ls_setprn |
1 |
string ls_prntrs = PrintGetPrinters ( ) |
1 |
ll_place=pos (ls_prntrs, "~n") |
1 |
mle_1.text = PrintGetPrinters ( ) |
1 |
ls_setprn = Left (ls_prntrs, ll_place - 1) |
1 |
<span>PrintSetPrinter</span> (ls_setprn) |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest