Reporting Services – problem with passing parameters directly in the URL

In one of the projects I had to create reports (using Reporting Services) that then should be accessible from the application I’ve been developing.

As the first thing I created the reports themselves (RDL files), deployed them using the Report Manager (more often http://localhost/Reports or http://localhost/Reports$SQLExpress), and configured so I could access them. However, each time I accessed a report I had to provide the input parameters which were used by the stored procedure in order to deliver appropriate amount of information. I wanted to avoid that by passing the parameters somwhowin the URL.

Google came with two interesting articles: Using SQL reporting services in an asp.net application with some notes on report parameters, and Passing parameters and other options directly through a URL in Reporting Services. I followed the instructions but failed. In fact I got stuck making minor changes to the URL, checking the configuration, googling further…

It was only my friend who spotted that I tried to pass the parameters to the Report Manager using URL similar to http://localhost/Reports/Pages/Report.aspx?ItemPath=XXX&rs:Command=Render&ParamName=ParamValue. Instead I should use the Report Server, so link looking this way: http://localhost/ReportServer/?XXX&rc:parameters=false&rs:Command=Render&ParamName=ParamValue.

Note: Please remember there are two services: Report Manager and Report Server and understand the difference between them. This way you won’t loose presous time, as I did :)

Reblog this post [with Zemanta]

Enjoy this Post?

Your vote will help me grow this site and provide even more information

17 Responses to “Reporting Services – problem with passing parameters directly in the URL”


  1. 1 Dave

    Thanks for pointing this out – I’ve been unsuccessfully trying to pass parameters and hadn’t noticed this. :-S

  2. 2 David K

    Thanks So much, I was in the middle of frustration whan I found this,

  3. 3 Ivano
  4. 4 Chintak

    thanks for pointing out the difference

  5. 5 Mark

    You are a lifesaver! Thanks for posting this information! I was about to lose my mind…

  6. 6 John Schofield

    Thanks a lot trying to sort this out for 3 days

  7. 7 max

    Thank you very much,

    Very usefull. We saved a lot of time thx to your comment.

    Grt,

  8. 8 susan

    unfortunately I still have a prob.
    I use =”javascript:void(window.open(‘http://vmsql03/ReportServer/RequestDetail1?%2fVMSQL03%2fRequestDetail1&rc:parameters=false&rs:Command=Render&RequestID=(Fields!RequestID.Value’))”

    my second report doesn’t acknowledge the value from 1st report when I click it.
    if I run manually yes…it works fine.
    any idea?

    Thanks,

  9. 9 Mark

    Thank you. It’s very helpful for me.

  10. 10 Mike

    Thank you! Exactly what I needed.

  11. 11 Carrie

    THANK YOU!! This finally solved my problem!

  12. 12 Adam

    Saved me a lot a time and hassle! Thanks, exactly the information I was looking for.

  13. 13 Saugat

    My report runs in report manager but not in report server, it gives an “internal error”. Please help.

  14. 14 Kapil

    You made my day man. Many thanks!

  15. 15 Los

    Wow, thank you so much! I was going nuts trying to figure this out. Jeez, so simple.

  16. 16 kali charan tripathi
  1. 1 Passing Parameters in URL to view a SSRS Report « Innovations Unlimited

Leave a Reply




Switch to our mobile site