I'm trying to put report in report viewer from MMV pattern but doesn't work.
in xaml
<Wpf:ReportViewer Name="ReportViewer1" Report="{Binding Reporting}" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Grid.RowSpan="2" Background="Transparent"></Wpf:ReportViewer>
and in view model:
AttendanceSheetReport Reporting
{
get { return _reporting; }
set
{
if(value!= _reporting)
{
_reporting = value;
InvokePropertyChanged("Reporting");
}
}
}
If I create report from code behind like that:
AttendanceSheetReport rep = new AttendanceSheetReport();
....
this.ReportViewer1.Report = rep;
I've no problema, but if I try to bind the response is No Report. can You help me?
in xaml
<Wpf:ReportViewer Name="ReportViewer1" Report="{Binding Reporting}" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Grid.RowSpan="2" Background="Transparent"></Wpf:ReportViewer>
and in view model:
AttendanceSheetReport Reporting
{
get { return _reporting; }
set
{
if(value!= _reporting)
{
_reporting = value;
InvokePropertyChanged("Reporting");
}
}
}
If I create report from code behind like that:
AttendanceSheetReport rep = new AttendanceSheetReport();
....
this.ReportViewer1.Report = rep;
I've no problema, but if I try to bind the response is No Report. can You help me?