2013-05-15 96 views
0

Helllo,如何從路徑添加圖像在RDLC報告中?在數據庫中只有圖像名稱被保存。如何從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(); 
} 

回答