I inheritated a program that was done in WPF MVVM style with MVVM Light. I need reports to come out of the program from data that was pulled in from a SQL server into ViewModels. I am not worried about sticking to MVVM if I dont have to, I just need it to work.
I am trying to use one of the ViewModel's already created as my data for the report. So far I have created a report named Report1.rdlc that is using the datasource CalibrationViewModel with dataset DataSet1
I have a form called DemoForm that opens a new window on a button click from the main WPF page with a report viewer (reportViewer1) inside of it. That is used to display the report. The reportViewer is bound to CalibrationViewModelBindingSource.
On the DemoForm_Load i have
this.reportViewer1.RefreshReport();
I feel like somewhere im missing a databinding. When I try to pull up the report it just has the header for the three fields I tried to populate in a table on the rdlc. I think I need to set the DataSource of the report when I open the new form just unsure of how to.