Click here to Skip to main content
14,869,901 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am very new for this concept, Can any one advice me how to bind a report in RDLC.

I have one form which contains of one drop down list of customers.
after selecting customer from drop down when i click genrate report button then that customers data need to get bind to the report.

I have created procedure which returns me customer details in the first table and in the second table it gives me all the customers order.

Now when i am adding RDLC to my solution, and adding the table to the RDLC.
at the time of selecting table it asks for me stored procedure name.
I have selected the name of procedure, but after that it only shows me the first table of the Stored procedure i.e the basic information about the Customer but not the second tables details columns i.e. all the orders of that customer.

Can any one tell me how to achieve this??

Thanks in advance
Posted

1 solution

you can;t do it, at least not with the current configuration. Reporting Services will only work with the first result set from a stored procedure.

You're left with the option of either breaking the queries out of the proc into different tables in the dataset/multiple datasets or breaking the proc into multiple procs.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




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