OfficeDataSourceObject.SetSortOrder Method
Sets the sort order for mail merge data.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Sub SetSortOrder ( _
SortField1 As String, _
SortAscending1 As Boolean, _
SortField2 As String, _
SortAscending2 As Boolean, _
SortField3 As String, _
SortAscending3 As Boolean _
)
'Usage
Dim instance As OfficeDataSourceObject
Dim SortField1 As String
Dim SortAscending1 As Boolean
Dim SortField2 As String
Dim SortAscending2 As Boolean
Dim SortField3 As String
Dim SortAscending3 As Boolean
instance.SetSortOrder(SortField1, SortAscending1, _
SortField2, SortAscending2, SortField3, _
SortAscending3)
void SetSortOrder(
string SortField1,
bool SortAscending1,
string SortField2,
bool SortAscending2,
string SortField3,
bool SortAscending3
)
Parameters
SortField1
Type: System.StringRequired String. The first field on which to sort the mail merge data.
SortAscending1
Type: System.BooleanOptional Boolean. True (default) to perform an ascending sort on SortField1; False to perform a descending sort.
SortField2
Type: System.StringOptional String. The second field on which to sort the mail merge data. Default is an empty string.
SortAscending2
Type: System.BooleanOptional Boolean. True (default) to perform an ascending sort on SortField2; False to perform a descending sort.
SortField3
Type: System.StringOptional String. The third field on which to sort the mail merge data. Default is an empty string.
SortAscending3
Type: System.BooleanOptional Boolean. True (default) to perform an ascending sort on SortField3; False to perform a descending sort.
See Also
Reference
OfficeDataSourceObject Interface