title: Embedding SSRS Report Viewer in a webpage
body: <p>I want to create in my website a navigation for SSRS. I will have left panel with all the reports I have and on the right I will have a div with the report the user selected. can I embedded the SSRS report viewer in an HTML div?</p>
  
  <p>The report viewer you see when going to:</p>
  
  <pre><code>http://&lt;server&gt;/ReportServer/Pages/ReportViewer.aspx?%2f&lt;path&gt;%2f&lt;ReportName&gt;&amp;rs:Command=Render
  </code></pre>
  
  <p>Also, can I pass username in the URL? I tried to user </p>
  
  <pre><code>http://&lt;server&gt;/ReportServer/Pages/ReportViewer.aspx?%2f&lt;path&gt;%2f&lt;ReportName&gt;&amp;rs:Command=Render&amp;UserId='username'
  </code></pre>
  
  <p>and I get error:</p>
  
  <pre><code>An attempt was made to set a report parameter 'UserId' that is not defined in this report. (rsUnknownReportParameter)
  </code></pre>
  
  <p>Thanks</p>
  
  <h1><strong>More Info:</strong></h1>
  
  <p>I am using <code>DataExtensions</code> and the userid gives me the database I need to connect to. In <code>winforms</code> I can use the <code>Microsoft.Reporting.WinForms.DataSourceCredentials</code> object to specify the DB, but in <code>WebForm</code> I can't use DataSourceCredentials (readonly)</p>
  
  <p>Any ideas?</p>