PrintSetupPrinter
PowerScript function
Description
Displays the printer setup dialog box
Syntax
|
1 |
PrintSetupPrinter ( ) |
Return value
Integer. Returns 1 if the function succeeds, 0 for cancel, -1 if an
error occurs.
Usage
You can display the printer setup dialog box for different printers
by first calling the PrintSetPrinter function. You cannot change the
printer by calling PrintSetupPrinter as you can with the PrintSetup
function.
Examples
This example displays the printer setup dialog box for the last
printer in the list retrieved by the PrintGetPrinters function.
|
1 2 3 4 5 6 7 8 |
long ll_place string ls_setptr string ls_prntrs = PrintGetPrinters ( ) ll_place=lastpos (ls_prntrs, "~n") ls_setptr = Mid (ls_prntrs, ll_place + 1) PrintSetPrinter (ls_setptr) PrintSetupPrinter () |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest