Use PESetNthSortField to set one of the sort fields in the specified report. This function can be used by itself to set a sort field/direction when there is not one already set, or to change a sort field/direction when the number and name of the sort field are known.
The function can also be used as one of a series of functions (PEGetNSortFields, called once; var reportAlertInfo : PEReportAlertInfo) : boolean stdcall;, or PEGetHandleString, called together as many times as needed to identify the correct sort field; and PESetNthSortField, called once when the correct sort field is identified). The series can be used in a Custom
BOOL CRPE_API PESetNthSortField (
short printJob,
short sortFieldN,
const char FAR *name,
short direction );
Specifies the print job for which you want to set sort field information. | |
Specifies the 0 | |
Specifies a pointer to the null | |
Specifies the sort direction. Use one of the PE_SF_XXX Sort Order Constants. |
This function should be called before PEStartPrintJob or the results may be inconsistent or unexpected.
Declare Function PESetNthSortField Lib "crpe32.dll" ( _
ByVal printJob As Integer, ByVal sortNumber As Integer, _
ByVal SortFieldName As String, ByVal Direction As Integer ) As Integer
function PESetNthSortField (
printJob: Word;
sortFieldN: smallint;
name: PChar;
direction: smallint
): Bool stdcall;
EXTERN CLOGICAL PESetNthSortField (CWORD, CWORD, CSTRING, CWORD) CRPE.DLL
| Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |