【问题标题】:How to add Image, from Path in RDLC Report如何从 RDLC 报告中的路径添加图像
【发布时间】:2013-05-15 06:27:56
【问题描述】:

您好,如何在 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();
}

【问题讨论】:

    标签: image path reporting rdlc


    【解决方案1】:

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

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

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

    【讨论】:

    • 您应该在此处发布答案以解释内容而不是链接,因为如果链接被删除,您的答案将毫无用处。
    猜你喜欢
    • 2013-05-29
    • 1970-01-01
    • 2017-12-16
    • 1970-01-01
    • 2021-07-19
    • 2015-09-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多