PECloseWindow

Use PECloseWindow to close the preview window. Use this function as part of a Custom-Print Link to enable the user to review the report in the preview window and then to close the window in response to a user event. Use PECloseWindow to replace the Close button when PEShowPrintControls disables the Print Control buttons.

C Syntax
void CRPE_API PECloseWindow (
        short printJob );
Parameter

printJob

Specifies the print job for which you want to close the preview window.

Returns

Void.

Remarks

The preview window will not be closed if it is busy (generating pages, reading records, etc.).

VB Syntax

VB Sample Code for Previewing a Report

Declare Sub PECloseWindow Lib "crpe32.dll" ( ByVal printJob As Integer )

Delphi Syntax
procedure PECloseWindow (
    printJob: Word
    )stdcall;
dBASE for Windows Syntax

EXTERN CVOID PECloseWindow (CWORD) CRPE.DLL



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