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();
-
- }
- }
But the result I get is an image in X form
what is the mistake in this code ?