Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
5.00/5 (3 votes)
See more: (untagged)
I'm using a stored procedure to populate a crystal report, But I get repeatative(duplicated) information on my report- something like 66 pages instead of atleast 2. I want to produce a transactions statement for a particular user, using the crystal report, with the stored procedure getting data from multiple tables, accepting as a parameter the name of a particular client(user). Am I using the crystal report for good purpose or may be the stored procedure isn't just a way of doing it?
[confused]
Posted

1 solution

You should be able to use a stored procedure as the datasource for a Crystal report.

1) Verify that when you execute the sproc outside of crystal it is returning the correct number of rows.
2) Make sure you are not performing some join in crystal which is giving you too many unexpected row.

My vision would be that the sproc would return all of the data necessary to generate the report and you would not have to join to any other table for reference data (like user first name, last name, etc), this would make designing the report very straight forward.

Hope this helps. [thumbs up]
 
Share this answer
 
Comments
Rajendra Bhandari 19-Jul-10 22:31pm    
Reason for my vote of 1
i think it will work


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900