PEGetAreaFormatFormula

Use PEGetAreaFormatFormula to retrieve the text of a conditional area format formula as a string handle. Use this function in order to update the conditional area format formula and pass the changes back using PESetAreaFormatFormula. Use PEGetHandleString, to retrieve the formula text.

C Syntax
BOOL CRPE_API PEGetAreaFormatFormula (
        short printJob,
        short areaCode,
        short formulaName,
        HANDLE FAR *textHandle,
        short FAR *textLength );
Parameters

printJob

Specifies the print job from which you want to get the area format formula.

areaCode

Specifies the Section Codes, for the area for which you want to get format information. See Working with section codes.

formulaName

Specifies the name of the formatting formula for which you want to supply a new string. Use one of the PE_FFN_XXX Area/Section Format Formula Constants.

textHandle

Specifies a pointer to the handle of the string containing the formula text.

textLength

Specifies a pointer to the length of the formula string (in bytes) including the terminating byte.

Returns
VB Syntax
Declare Function PEGetAreaFormatFormula Lib "crpe32.dll" (
    ByVal printJob As Integer, ByVal areaCode As Integer,
    ByVal formulaName As Integer, textHandle As Long,
    textLength As Integer ) As Integer
Delphi Syntax
function PEGetAreaFormatFormula (
    printJob: Word;
    areaCode: Word;
    formulaName: Word;
    var textHandle: HWnd;
    var textLength: Word
    ): Bool stdcall;


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