title: ReportViewer WPF - Set Images Dynamically
body: <p>I'd like to load image(s) at runtime (dynamically) into my report (inside the header).</p>
  
  <p>I've already create the following parameter:</p>
  
  <pre><code>Name: Path
  Datatype: String (should be the path to the image)
  Allow Blank = True
  </code></pre>
  
  <p>Then I've draged and droped an image control to my report.
  Set the name to: Image2
  Imagesource: External
  Use the following image: [@Path]</p>
  
  <p>Now (back in my MainWindow) I've added the following code:</p>
  
  <pre><code>        viewerInstance.LocalReport.EnableExternalImages = true;
          List&lt;ReportParameter&gt; param1 = new List&lt;ReportParameter&gt;();
          //header_2.png exists (for test purposes) in the root folder
          param1.Add(new ReportParameter("Path", @"/header_2.png"));
          viewerInstance.LocalReport.SetParameters(param1);
  </code></pre>
  
  <p>It doesn't work.
  I'll get this error message:</p>
  
  <p>The invocation of the constructor on type 'ReportViewer.MainWindow' that matches the specified binding constraints threw an exception.
  {"The source of the report definition has not been specified"}</p>
  
  <p>Any ideas?</p>