PESetEventCallback

Use PESetEventCallback to set the event callback function for the specified job. CRPE can fire certain events when something happens inside CRPE. CRPE will call the callback function and notify what kind of event has or is about to occur. Within callbackProc, the user can interpret the event ID and perform the proper process.

C Syntax
BOOL CRPE_API PESetEventCallback (
        short printJob,
        BOOL (CALLBACK *callbackProc)
            (short eventID, void *param, void *userData)
        void *userData );
Parameters

printJob

Specifies the print job for which you want to create an Event callback procedure.

callbackProc

The CALLBACK procedure that will handle your Crystal Report Engine events. This should be a pointer to a standard Windows CALLBACK procedure. Refer to the Windows SDK for information on creating CALLBACK procedures.

userData

Specifies a pointer to any information you want to pass to the Event handling CALLBACK procedure. The pointer will be available in the userData member of the procedure. This value can be 0.

Returns
Remarks
PE_ACTIVATE_PRINT_WINDOW_EVENT
PE_CANCEL_BUTTON_CLICKED_EVENT
PE_CLOSE_BUTTON_CLICKED_EVENT
PE_CLOSE_PRINT_WINDOW_EVENT
PE_DEACTIVATE_PRINT_WINDOW_EVENT
PE_DRILL_ON_DETAIL_EVENT
PE_DRILL_ON_GROUP_EVENT
PE_DRILL_ON_HYPERLINK_EVENT
PE_EXPORT_BUTTON_CLICKED_EVENT
PE_FIRST_PAGE_BUTTON_CLICKED_EVENT
PE_GROUP_TREE_BUTTON_CLICKED_EVENT
PE_LAST_PAGE_BUTTON_CLICKED_EVENT
PE_LAUNCH_SEAGATE_ANALYSIS_EVENT
PE_LEFT_CLICK_EVENT
PE_MAPPING_FIELD_EVENT
PE_MIDDLE_CLICK_EVENT
PE_NEXT_PAGE_BUTTON_CLICKED_EVENT
PE_PREVIOUS_PAGE_BUTTON_CLICKED_EVENT
PE_PRINT_BUTTON_CLICKED_EVENT
PE_PRINT_SETUP_BUTTON_CLICKED_EVENT
PE_READING_RECORDS_EVENT
PE_REFRESH_BUTTON_CLICKED_EVENT
PE_RIGHT_CLICK_EVENT
PE_SEARCH_BUTTON_CLICKED_EVENT
PE_SHOW_GROUP_EVENT
PE_START_EVENT
PE_STOP_EVENT
PE_ZOOM_LEVEL_CHANGING_EVENT
Delphi Syntax
function PESetEventCallback(
    printJob: Word;
    callbackProc: pointer
        {Callback Function should be of form:
        Function callbacProc(eventID: smallint;
                    param: pointer;
                    userData: pointer)}
    ): Bool stdcall;


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