PESetAreaFormatFormula

Use PESetAreaFormatFormula to change the specified area format formula to the formula string you supply as a parameter. This function will only change the text of a formula which already exists in the report; you cannot use it to add a formula. When you give the user the ability to change the formula at print time, your link must include code to replace the formulaString parameter with a user-generated value.

C Syntax
BOOL CRPE_API PESetAreaFormatFormula (
        short printJob,
        short areaCode,
        short formulaName,
        const char FAR *formulaString );
Parameters

printJob

Specifies the print job for which you want to set a new format formula string.

areaCode

Specifies the Section Codes for the report area for which you want to set formatting options. 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.

formulaString

Specifies a pointer to the null-terminated string that you want to assign to the format formula.

Returns
Remarks
VB Syntax
Declare Function PESetAreaFormatFormula Lib "crpe32.dll" (
    ByVal printJob As Integer, ByVal areaCode As Integer,
    ByVal formulaName As Integer, ByVal formulaString As String ) As Integer
Delphi Syntax
function PESetAreaFormatFormula(
    printJob: Word;
    areaCode: Word;
    formulaName: Word;
    formulaString: Pchar
    ): Bool stdcall;


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