0

您好,如何在 RDLC 报告中添加路径中的图像?在数据库中仅保存图像名称的位置。

和这样的报告代码

{
    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();
}
4

1 回答 1

0

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

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

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

于 2014-03-13T05:09:39.647 回答