on 09-19-2008 3:16 PM
using vb6 and cr XI and I am trying to provide the user with the capability of defining sort options using options defined on a VB6 form. The sample code I've found as described below doesn't seem to allow me to change the sort criteria by field name
'General Declarations
Dim CRXDatabaseField As CRAXDRT.DatabaseFieldDefinition
Private Sub Form_Load()
Set CRXDatabaseField = CRXReport.Database.Tables.Item(1).Fields.Item(8)
CRXReport.RecordSortFields.Item(1).Field = CRXDatabaseField
I would like the user to select an option to sort by say Client and then provide this information to the report like I could with CR 7 as follows
crReport.SortFields(0) = "+{Horse.Location}"
Thanks for any help
Gerry
Hi Gerry,
Have a look to [Sample codes|https://boc.sdn.sap.com/codesamples] and [Dev Library|https://boc.sdn.sap.com/developer/library]
Hope that helps!!
Regards,
Shweta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.