PEClosePrintJob

Use PEClosePrintJob to close the print job. If printing has not yet finished, it continues; if the preview window is open, it stays open. This function is used as a mandatory part of each Custom-Print Link to shut down the print job once it has finished printing.

C Syntax
BOOL CRPE_API PEClosePrintJob (
        short printJob );
Parameter

printJob

Specifies the print job that you want to close.

Returns
Remarks

Once this function has been called, most other Crystal Report Engine functions except PEOpenPrintJob; PECloseEngine; PEGetVersion; and PELogOnServer, cannot be called.

VB Syntax
Declare Function PEClosePrintJob Lib "crpe32.dll" (ByVal printJob _
        As Integer) As Integer
Delphi Syntax

Delphi code for opening and closing a PrintJob

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

EXTERN CLOGICAL PEClosePrintJob (CWORD) CRPE.DLL



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