PEGetNthParameterField

Use PEGetNthParameterField to retrieve information about one of the parameter fields in the specified report. For new development, see Remarks below. This function returns the name of the field, the data type, and information about the value set for the field. The name of the parameter field is returned as a string handle. This function is typically used as one of a series of functions (PEGetNParameterFields, (called once); PEGetNthParameterField (called as many times as needed to identify the correct parameter field); and PESetNthParameterField, (called once when the correct parameter field is identified). The series can be used in a Custom-Print Link to identify and then change an existing parameter field value in response to a user selection at print time.

C Syntax
BOOL CRPE_API PEGetNthParameterField (
        short printJob,
        short parameterN,
        PEParameterFieldInfo FAR *parameterInfo );
Parameters

printJob

Specifies the print job that contains the parameter field about which you want to retrieve information.

parameterN

Specifies the number of the parameter field about which you want to retrieve information.

parameterInfo

Specifies a pointer to PEParameterFieldInfo, which is used to store the information you retrieve. See Remarks below.

Returns
Remarks
VB Syntax
Declare Function PEGetNthParameterField Lib "crpe32.dll" (ByVal printJob 
As Integer, ByVal varN As Integer, varInfo As PEParameterFieldInfo) As 
Integer
Delphi Syntax
function PEGetNthParameterField (
    printJob: Word;
    varN: Smallint;
    var varInfo: PEParameterFieldInfo
    ): Bool stdcall;


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