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.
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.