PEStartPrintJob

Use PEStartPrintJob to start the printing of a report. This function is used as a mandatory part of each Custom-Print Link to trigger the printing of a report to the printer or to the preview window.

C Syntax
BOOL CRPE_API PEStartPrintJob (
        short printJob,
        BOOL waitUntilDone );
Parameters

printJob

Specifies the print job you want to start.

waitUntilDone

BOOL. Reserved. This parameter must always be set to TRUE.

Returns
Remarks

A print job can be started only once. Once started, the only function that can be used is PEClosePrintJob.

VB Syntax

VB Sample Code for Custom Print Link

Declare Function PEStartPrintJob Lib "crpe32.dll" (ByVal printJob _
        As Integer, ByVal WaitOrNot As Integer) As Integer
Delphi Syntax

Delphi code for exporting a report

function PEStartPrintJob (
    printJob: Word;
    waitUntilDone: Bool
    ): Bool stdcall;
dBASE for Windows Syntax

EXTERN CLOGICAL PEStartPrintJob (CWORD, CLOGICAL) CRPE.DLL



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com