PrintSetupPrinter PowerScript function
Description
Displays
the printer setup dialog box
Syntax
|
1 |
<span>PrintSetupPrinter</span> ( ) |
Return Values
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 |
long ll_place |
|
1 |
string ls_setptr |
|
1 |
string ls_prntrs = PrintGetPrinters ( ) |
|
1 |
|
1 |
ll_place=lastpos (ls_prntrs, "~n") |
|
1 |
ls_setptr = Mid (ls_prntrs, ll_place + 1) |
|
1 |
PrintSetPrinter (ls_setptr) |
|
1 |
<span>PrintSetupPrinter</span> () |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest