Saqi

Saqi

  • NA
  • 63
  • 122.3k

I could not solve this problem to show image along with report.

Nov 22 2012 7:44 AM
i want show photo as logo in report.rdlc. i have created parameter name path and Chang his image source as external.
here is my code . image not showing on report
try
{
this.pedidosTableAdapter.Connection.ConnectionString = con.MysqlConnect();

pedidosTableAdapter.Fill(this.fabricacaoDataSet8.pedidos, Pages.relatorios.num);
this.reportViewer1.RefreshReport();
 
// external photo
           
this.reportViewer1.LocalReport.EnableExternalImages = true;
ReportParameter parm = new ReportParameter("path",@"C:\logo.BMP",true);
//parm=(new ReportParameter("path", @"C:\logo.BMP"));
his.reportViewer1.LocalReport.SetParameters(parm);
this.reportViewer1.Refresh();
}catch{}