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.
BOOL CRPE_API PEGetAreaFormatFormula (
short printJob,
short areaCode,
short formulaName,
HANDLE FAR *textHandle,
short FAR *textLength );
Specifies the print job from which you want to get the area format formula. | |
Specifies the Section Codes, for the area for which you want to get format information. See Working with section codes. | |
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. | |
Specifies a pointer to the handle of the string containing the formula text. | |
Specifies a pointer to the length of the formula string (in bytes) including the terminating byte. |
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
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 |