ReportViewer Control parameters RRS feed

  • Question

  • Does anybody know why when I use ReportViewer Control I can't use the parameters bar of the original report to pass parameters?, I know that I can pass parameters through ReportViewer Control but I want to use the original parameters bar that the report has, because other way I have to create control for each kind of report that I want to render with parameters.

    In my report1, for example, in the parameters bar I have a drop-down where I select the customer Id, but in the report2 I have a Text box, and so on, I have a lot of report for that reason I want to use the original report parameters bar.

    Thanks in advance


    Tuesday, March 22, 2011 1:57 PM

All replies

  • Hi Peter,

    Which mode is the ReportViewer control configured in your application, remote processing mode or local processing mode?

    If the ReportViewer is configured in remote processing mode to display report on Report Server, we can use the original parameters bar. Please make sure to set the ShowParameterPrompts property of the ReportViewer to Ture. However, if the ReportViewer control is configured in local processing mode to display local report in your application, I'm afraid we need add other controls to the form to allow users input report parameter.

    Tony Chain

    Tony Chain [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Sunday, March 27, 2011 2:51 PM
  • Hi Tony,

    Thanks for your answer, but I still running in my problem, I am using remote processing in my reportviewer control (VS2008) with SSRS (2008) R2, and yes I can see the parameters bar when I render my report but when I pass any value (or select from a list) and press view_report button,  it look like i got a postback but without my parameter values. Now if I pass those values from my application using RV.ServerReport.SetParameters() method my report works fine, even if I try to change those values and press view_report button the report renders again with the same parameter values that it was before.

    My friend tried and got the same problem, it look like I am missing some configuration!!??

    Once again thanks for your answer.


    Tuesday, March 29, 2011 3:29 PM
  • Hi Frnds,

    Struggling with the same issue...

    Fig: Just an overview only

    Providing parameter with appliocation input i can get the

    when user provides the input to application

    Input Parameter 1= 'Rahul Vairagi'
    Input parameter 2 ='Software Engineer'
    Input Parameter 3  = 'Bangalore'

    The related data and the graph report will be displayed.

    Now what I need is:
    Suppose if user wants to change the parameters what it is set for the original graph reports (SSRS), how it can be done here ?

    Means,The user should be able to change the report parameter  in the reportviewer and be able to see the corresponding graph report.

    Please revert anyone as soon as possible ....

    =================================== Rahul Vairagi ========================================== My Blogs: www.sqlserver2005forum.blogspot.com

    Wednesday, March 14, 2012 3:20 PM