Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When a button click the dataset values shows into the ReportViewer in WPF
Posted

1 solution

Hi Dibin,
Reportviewer directly not available in WPF. So u need to add WindowsFormHost Control to host the report viewer. From that u can show the reports. Check the below link

Host Windows Form Controls in WPF[^]


Hope this will help you.

Regards,
Babu.K
 
Share this answer
 
Comments
Dibin Babu 27-Feb-13 7:18am    
I have a dataset ,i want to show the dataset values into the windowsFormsHost.
Babu Kumar 27-Feb-13 7:25am    
First u need to create a rdlc report file using that datasource. Then u need to assign the dataset to the reort document. then load the report in the reportviewer.

http://www.codeproject.com/Articles/13592/Binding-DataSet-and-Generic-rdlc-Reports-to-a-Repo

Check this link this will give u a idea to load the dataset into rdlc report.

Babu.K

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