PEDiscardSavedData

Use PEDiscardSavedData to discard the data that was previously saved with the report. If a report has been saved with data, you can use this function to discard the saved data, forcing the Crystal Report Engine to retrieve new data the next time the report is printed.

C Syntax
BOOL CRPE_API PEDiscardSavedData (
        short printJob );
Parameter

printJob

Specifies the print job for which you want to discard the saved data.

Returns
Remarks

This function should be called before PEStartPrintJob, or the results may be inconsistent or unexpected.

VB Syntax

VB Sample Code for Custom Print Link

Declare Function PEDiscardSavedData Lib "crpe32.dll" (
    ByVal printJob As Integer ) As Integer
Delphi Syntax

Delphi code for getting/setting print options

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

EXTERN CLOGICAL PEDiscardSavedData (CWORD) CRPE.DLL



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