数据钻取这名字有意思,其实就有点像超链接一样。

要实现数据钻取的话与上一篇中添加子报表多一点点内容。

在你需要进行钻取的字段中设置跳转属性如下图:

RDLC-数据钻取

然后在aspx的reportviewer控件中加入跳转事件:

  protected void ReportViewer1_Drillthrough(object sender, DrillthroughEventArgs e)
    {
        LocalReport localReport = (LocalReport)e.Report;
        localReport.DataSources.Add(new ReportDataSource("ReportDataSet_Client", ds.Tables[0]));
        localReport.DataSources.Add(new ReportDataSource("ReportDataSet_Product", ds.Tables[1]));
        localReport.DataSources.Add(new ReportDataSource("ReportDataSet_OrderView", ds.Tables[2]));
    }

相关文章:

  • 2022-12-23
  • 2021-10-29
  • 2021-04-12
  • 2022-12-23
  • 2022-02-10
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2021-06-20
  • 2021-07-11
相关资源
相似解决方案