如何在RDLC报告中从路径添加图像

时间:2013-05-15 06:27:57

标签: image path reporting rdlc

Helllo,如何在RDLC报告中添加Path中的图像?在数据库中仅保存图像名称。

报告代码就像那样

{
    EmployeeDataSetTableAdapters.tblAdditionalInfoTableAdapter adpPic = new    EmployeeDataSetTableAdapters.tblAdditionalInfoTableAdapter();
    EmployeeDataSet.tblAdditionalInfoDataTable tblPic = new EmployeeDataSet.tblAdditionalInfoDataTable();
    adpPic.Fill(tblPic);
    ReportDataSource mds2 = new ReportDataSource("Pics", (DataTable)tblPic);

    this.ReportViewer1.LocalReport.DataSources.Clear();
    this.ReportViewer1.LocalReport.ReportPath = Server.MapPath("PrintID.rdlc");

    this.ReportViewer1.LocalReport.DataSources.Add(mds2);
    this.ReportViewer1.LocalReport.Refresh();
}

1 个答案:

答案 0 :(得分:0)

检查以下链接。它将解释图像如何在RDLC报告中添加。 该视频包含作品演示

https://www.youtube.com/watch?v=RxS323bLdFs

http://easyprogrammingtechniques.blogspot.in/2014/02/how-to-add-image-in-rdlc-report.html