Reposition parameter prompts objects

  • Hello all,

    Please tell me how to move around prompt objects - drop down lists and their labels.

    I have a report with 4 parameters - hence 4 prompts which I want to reposition a bit. I don't like their default positioning which seems like floating objects around each other.

    Thanks,

    Peter.

  • The layout is based on the order of your listed parameters (Report -> Report Parameters). You have the ability to move them up or down which will affect where they get displayed.

    Eli

  • Thanks for the reply. Well I knew that. It is not enough for my purposes. I need better control.

  • HI

    if using your report in APS.net page use external parameter prompts by manually setting controls like textbox,drop down etc..and passing param values directly to report. then hide the reportviewer parameter prompt section

    Thanks

  • Do you have any examples by chance. I am not a .net developer but can pick up logic if I have code sample.

    Thanks.

  • Try this

    In Visual Studio – in an aspx page – Add a Microsoft Reportviewer control from the tools menu-Reporting tab.

    Then add this code on any button click in the page

    Change the report server url, report name and parameters in this code

    //if report is deployed in a remote server

    ReportViewer1.ProcessingMode = ProcessingMode.Remote;

    //url of the serer

    ReportViewer1.ServerReport.ReportServerUrl = new System.Uri("http://server:8081/Reports");

    //path and name of the report

    ReportViewer1.ServerReport.ReportPath = "/Dynamics/report1";

    ReportViewer1.ShowParameterPrompts = false;

    //parameter collection pass from the aspx page

    List paramList = new List();

    paramList.Add(new ReportParameter("EmpID", TextBox1.Text, false));

    paramList.Add(new ReportParameter("ReportMonth", Month.Text,false));

    paramList.Add(new ReportParameter("ReportYear", Year.Text,false));

    this.reportViewer1.ServerReport.SetParameters(paramList);

    // Process and render the report

    ReportViewer1.DataBind();

  • It is very easy to move it up and down with up and down buttons available on Report Parameter Dialog box.

    Regards,

    Chirag Prajapati

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply