After upgrading to q2 release (for Silverlight) i can't get ReportViewerModel from ReportViewer.
I tried to use
but datacontext for this control i always null,
then I tried
this gives me an error :
Specified argument was out of the range of valid values.
Parameter name: childIndex
I found that before i could use ReportViewerModel constructor. After upgrade i cannot.
I'm trying to use PrintDocumentCommand. Can i do that without ReportViewerModel?
I tried to use
var reportViewerModel = reportViewer.DataContext
as
ReportViewerModel;
but datacontext for this control i always null,
then I tried
var layoutRoot = (FrameworkElement)VisualTreeHelper.GetChild(
this
.reportViewer, 0);
var rvm = (ReportViewerModel)(layoutRoot.DataContext);
this gives me an error :
Specified argument was out of the range of valid values.
Parameter name: childIndex
I found that before i could use ReportViewerModel constructor. After upgrade i cannot.
I'm trying to use PrintDocumentCommand. Can i do that without ReportViewerModel?