Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal report sorting problems

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I am caling crystal reports from Visual Basic (5.0). I have
crystal report control 4.6. I am running the report by giving report filename, connect statement, sortfields, destination and action. I have given the following syntax for sorting:

crystalrep1.sortfields(0)="+{report1.ssn}"

to sort the report by ssn. It is not sorting as per my requests. I have this problems only when i call the report from VB. I ran the same report from Crystal report and it works fine.

I tried couple of things.
1) Removed the sorting parameter from the VB, so that to use the sorting instructions specified at design time.
2) Specified sorting parameters at runtime, in order to replace the sorting instructions given at design time.

I am not successful in both the attempts. I would appreciate, if any one can give me some suggestions. If you need any clarifications, please let me know.
Thanks in advance.
Pal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top