Table of Contents

Print_Init function

Description

Starts a printing session.

Syntax

status = Print_Init(mode, jobtitle, handle)

Parameters

The Print_Init function has the following parameters:

ParameterDescription
modeValue - Description
0 - Default printer.
1 - Displays the Print dialog box and lets you choose the printer.
jobtitleThe print job title to appear in Print Manager.
handleHandle of the owner window.

Returns

True for successful execution or False for failure.

See Also

Print_End()

Example

* Sends the print job name to Print Manager.
hwnd = Get_Property(@Window, 'HANDLE')
stat = Print_Init(0,"Test Document", hwnd)