I'm having trouble with some VB commands for Crystal Reports 8.5. I am using RDC, and am trying to sort a report by a user selected option. I get into trouble when attempting to refresh the report with a different sort. I am using the method Report.RecordSortFields.add x, crAscendingOrder
I've tried using CRViewer1.Refresh, but get the following error: Method 'Refresh' of object 'ICrystalReportViewer4' failed
I've also tried using Report.RecordSortFields.Delete But I don't know what argument to put in after the Delete. It wants an integer, but I'm new to VB, and haven't got any idea what it is looking for.
I've tried using CRViewer1.Refresh, but get the following error: Method 'Refresh' of object 'ICrystalReportViewer4' failed
I've also tried using Report.RecordSortFields.Delete But I don't know what argument to put in after the Delete. It wants an integer, but I'm new to VB, and haven't got any idea what it is looking for.