title: SQL Reporting Services: Finding the folder a report is in
body: <p>If I have the report name how can I programmatically get the name of the project/folder the report is in?</p>
  
  <p>So for example if I have a report like so </p>
  
  <pre><code>http://server/Reports/Pages/Report.aspx?ItemPath=/ReportProject1/ReportName
  </code></pre>
  
  <p>Given <code>ReportName</code> how can I figure out that the report is in the folder <code>ReportProject1</code>?</p>
  
  <p>So I guess is there a function where I can pass int he report name and get it's details or else query the report server for a list of its report folders and I can loop through these and check some how that the report is inside?</p>