SetPrinter

Description:

baSetPrinter changes settings for the default printer.

Platforms:

Windows

Usage:

Result = baSetPrinter( Info, Data )

Arguments:

String, any.
Info is the type of information to set.
Can be:

"default" 

set the current default printer (string)

"orientation" 

the orientation of the default printer (string)

"paper" 

the selected paper size of the default printer (string)

"papername" 

the name of the selected paper of the default printer (string)

"copies" 

the number of copies to print (integer
Data is the data to set - the format depends on the info type. can be either a string or a number.

Returns:

Integer
Returns 1 if successful, otherwise 0.

Examples:

Director:
ok = baSetPrinter( "default", "Epson 400 Stylus Color" )
ok = baSetPrinter( "copies", 2 )

Authorware:
ok := baSetPrinter( "orientation", "landscape" )
ok := baSetPrinter( "copies", 2 )
 

Notes:

The "default" option only requires the name of the printer, not the port or driver.

The "paper" option uses the same names as the baPrinterInfo "paper".

The "papername" option uses the same names as the baPrinterInfo "papername".
 

See also:

baPrinterInto
baPrinterDlg