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