Good evening, I try to display an image in a reportViewer from a send path as a parameter.
Here is my code that I insert:
- public partial class PrintFiche : Form
- {
- public PrintFiche()
- {
- InitializeComponent();
- }
- private void PrintFiche_Load(object sender, EventArgs e)
- {
- reportViewer1.LocalReport.ReportPath = "D:\\workspace\\Report\\FichePersonne.rdlc";
- ReportParameter lim = new ReportParameter("image",@"C:\Documents and Settings\Mes images\Échantillons d'images\Collines.jpeg", true);
- reportViewer1.LocalReport.EnableExternalImages = true;
- reportViewer1.LocalReport.SetParameters(new ReportParameter[] {lim} );
- this.reportViewer1.RefreshReport();
- }
- }
what is the mistake in this code ?

Ziddi KhattakPosted Nov 17, 2016, 6:19 AM
Brijesh RathorPosted Nov 17, 2016, 6:05 AM
Convert your image to base64 string and then pass it to your report as parameterand then set the Report image to this parameter.
abdelwaheb ammarPosted Nov 16, 2016, 5:32 AM
Ziddi KhattakPosted Nov 16, 2016, 1:52 AM