PrintSetupPrinter

Description

Displays the printer setup dialog box

Syntax

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.

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

PrintGetPrinter

PrintSetPrinter

PrintSetup