By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,696 Members | 1,225 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,696 IT Pros & Developers. It's quick & easy.

Crystal Reports ? Set Order By At runtime

P: n/a
I am looking for a way to set the Sort Order by at runtime

Sort the output of field "totalfees" to (descending) or (ascending) at
runtime.

Thanks

BrianDH
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
This works
Dim crSortDirection As SortDirection
Dim crDatabaseFieldDefinition As DatabaseFieldDefinition
Dim crSortField As SortField
Dim iSortItem As Integer = 0

crDatabaseFieldDefinition =
crReportDocument.Database.Tables(0).Fields(6)
crSortField = crReportDocument.DataDefinition.SortFields(0)
crSortField.Field = crDatabaseFieldDefinition
'crSortField.SortDirection = SortDirection.AscendingOrder
crSortField.SortDirection = SortDirection.DescendingOrder

"BrianDH" wrote:
I am looking for a way to set the Sort Order by at runtime

Sort the output of field "totalfees" to (descending) or (ascending) at
runtime.

Thanks

BrianDH

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.