Use PESetGroupCondition to change the group condition for a group section. Use this function whenever you want to change the grouping at print time, for example, to print one report grouped in several different ways.
BOOL CRPE_API PESetGroupCondition (
short printJob,
short sectionCode,
const char FAR *conditionField,
short condition,
short sortDirection );
Specifies the print job for which you want to change the group condition for a group section. | |
Specifies the code for the report section for which you want to set the group condition. See Working with section codes. | |
Specifies a pointer to the name of the field that triggers a summary whenever its value changes. This parameter is a result of calling PEGetHandleString, with conditionFieldHandle and conditionFieldLength, returned by PEGetGroupCondition. | |
Specifies the condition that will trigger a summary. Use one of the PE_GC_XXX Group Condition Constants. Note that the constants available are different for different field types. | |
Use one of the PE_SF_XXX Sort Order Constants. |
Declare Function PESetGroupCondition Lib "crpe32.dll" (ByVal printJob As Integer, ByVal sectionCode As Integer, ByVal ConditionField As String, ByVal Condition As Integer, ByVal SortDirection As Integer) As Integer
function PESetGroupCondition (
printJob: Word;
sectionCode: smallint;
conditionField: PChar;
condition: smallint;
sortDirection: smallint
): Bool stdcall;
EXTERN CLOGICAL PESetGroupCondition (CWORD, CWORD, CSTRING, CWORD, CWORD) CRPE.DLL
| Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |