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 Khattak21 reputationPosted Nov 15, 2016, 8:52 PM EST
abdelwaheb ammarRank #4,571 · 337 reputationPosted Nov 16, 2016, 12:32 AM EST
Brijesh RathorRank #7,391 · 242 reputationPosted Nov 17, 2016, 1:05 AM EST
Ziddi Khattak21 reputationPosted Nov 17, 2016, 1:19 AM EST