title: How to add an image to an SSRS report with a dynamic url?
body: <p>I'm trying to add an image to a report. The image src url is an <a href="http://msdn.microsoft.com/en-us/library/system.web.ihttphandler.aspx" rel="noreferrer">IHttpHandler</a> that takes a few query string parameters. Here's an example:</p>
  
  <pre><code>&lt;img src="Image.ashx?item=1234567890&amp;lot=asdf&amp;width=50" alt=""/&gt;
  </code></pre>
  
  <p>I added an <strong>Image</strong> to a cell and then set <strong>Source</strong> to External and <strong>Value</strong> to the following expression:</p>
  
  <pre><code>="Image.ashx?item="+Fields!ItemID.Value+"&amp;lot="+Fields!LotID.Value+"&amp;width=50"
  </code></pre>
  
  <p>But when I view the report, it renders the image html as:</p>
  
  <pre><code>&lt;IMG SRC="" /&gt;
  </code></pre>
  
  <p>What am I missing?</p>
  
  <p><strong>Update</strong></p>
  
  <p>Even if I set <strong>Value</strong> to "image.jpg" it still renders an empty src attribute. I'm not sure if it makes a difference, but I'm using this with a VS 2008 ReportViewer control in Remote processing mode.</p>
  
  <p><strong>Update</strong></p>
  
  <p>I was able to get the images to display in the Report Designer (VS 2005) with an absolute path (<a href="http://server/path/to/http/handler" rel="noreferrer">http://server/path/to/http/handler</a>). But they didn't display on the Report Manager website. I  even set up an <a href="http://msdn.microsoft.com/en-us/library/ms156302.aspx" rel="noreferrer">Unattended Execution Account</a> that has access to the external URLs.</p>