|
|
1
1
我认为您需要在reportviewer加载到视图中之后调用refresh report。 下面是我的代码(reportViewerHost是WindowsFormsHost,在UserControl中使用XAML声明)
在SqlReportViewModel的LoadReport方法中,我将数据源设置为
其中report是作为参数传递的对LocalReport对象的引用
我花了一段时间才弄明白。。。希望这有帮助。。 祝你好运……) |
|
|
2
0
希望它能回答你的问题。 |