I've added a ReportViewer
in a WPF
app via the XAML
designer of my main window and I'd like to add an existing rdlc file to it.
I'd like my reportviewer to show an empty rdlc file (without the parameters) on startup, and later upon selecting a row from my datagrid (bound to an observablecollection) change its parameters accordingly and show the filled report definition instead of the empty one.
I'll make a button with the selected row as commandparameter and the relevant events and everything, I just need to be able to pass data to the report. I realize it is not an easy question so I'll try to simplify:
I hope I've been clear. Thanks for the answer in advance!
RDLC stands for Report Definition Language Client Side. It is used to create reports the with the in-built services provided by Microsoft. Initially, RDLC was used in just web applications but presently, it can be used in both, web and desktop applications.
To create a dataset for the RDLC report, click Reporting under Visual C# Items. Click Report, and then click Add. The Report Wizard opens. Enter a dataset name in Name field.To choose a data source for the dataset, click New on the right of Data source drop-down combo box.
A was developing somethink like that a couple of months ago. However it's to much code to post here but have a look at this its completed sample with source Code. Advanced-Report-Viewver Codeproject
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With