我在WPF中使用rdlc报告,所以使用WindowsFormsHost包装器来完成。我正在查找的rdlc报告中嵌入了一个子报表,我使用ReportViewer的SubreportProcessing事件设置了该报表的数据源。SubreportProcessing Event not Firing
Viewer.LocalReport.SubreportProcessing += new SubreportProcessingEventHandler(LoadAccessoriesSubReport);
我的问题是SubreportProcessing事件甚至没有被解雇。我定义它在Window_Loaded
事件,包含嵌入ReportViewer控件WPF窗口的,请参见下面的XAML:
Title="ReportViewer" Height="1000" Loaded="Window_Loaded" Width="1000">
<Grid>
<WindowsFormsHost Name="winHost">
<wf:ReportViewer Dock="Fill" Name="rptViewer">
</wf:ReportViewer>
</WindowsFormsHost>
</Grid>
将不胜感激任何帮助。
我有同样的问题。我还没有找到解决方案...... – jbandi 2010-01-18 12:06:33
虽然不是直接的问题,但有问题的细节回答了我的问题。谢谢! +1 – 2010-06-02 19:23:04