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