PrintDlg

Description:

baPrintDlg shows the system printer dialog.

Platforms:

Windows

Usage:

Result = baPrintDlg( Flags )

Arguments:

Integer.
Flags alters the behaviour of the dialog. No Flags are presently defined, always use 0.

Returns:

Integer.
Returns 1 if user selects Print, otherwise 0.

Examples:

Director:
ok = baPrinterDlg( 0 )

Authorware:
ok := baPrintDlg( 0 )
 

Notes:

This function does not do any printing - it just shows the dialog box.

The return will be 1 if the user clicks the 'Print' button, or 0 if the user cancels. If the user clicks Print, then the selections the user has made in the dialog will be set as the default printer settings. You can retrieve these settings by using baPrinterInfo. For example, baPrinterInfo( "copies" ) will return the number of copies the user selected.

if baPrintDlg( 0 ) = 1 then -- user selected to print
    copies = baPrinterInfo( "copies" ) -- get number of copies entered
    doMyPrint( copies ) -- pass to your printing routine
end if

See also:

baPrinterInto
baSetPrinter