PrintFile

Description:

baPrintFile prints a document, using the program that the file is associated with.

Platforms:

Windows and Macintosh

Usage:

Result = baPrintFile( FileName )

Arguments:

String.
FileName is the name of the file to print. The full path name should be supplied.

Returns:

Integer.
Returns an error code. If the return is less than 32 than an error occurred.
On Windows, some return values are:

System was out of memory.

File was not found.

31 

There is no application registered to print the given filename extension.

On Macintosh, an error will always return 0.

Examples:

Director:
OK = baPrintFile( the moviePath & "test.txt" )

Authorware:
OK := baPrintFile( FileLocation ^ "test.txt" )
 

See also:

baOpenFile
baShell