none
Report parameters RRS feed

All replies

  • Hello,

    in the RDLC Designer press Control+Alt+D and then add the Parameter below the Parameter section.

    In you c# File (for VB it's the same) add the Parameter, like this:

    /*Parameter*/ ReportParameter avaliado = new ReportParameter("avaliado", drpAvaliado.SelectedValue); ReportParameter loja = new ReportParameter("loja", drpLojas.SelectedValue); ReportParameter setor = new ReportParameter("setor", drpSetores.SelectedValue);

    ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { avaliado, loja, setor });

     

    Caution: the Parameter Name must be the same, lower and upper case as well.

    Hope this helps

    Thomas

    Monday, February 16, 2015 3:44 PM
  • Thanks for Thomas Steen's help.

    Hi MayzD,

    As far as I know, we can use ReportParameter to pass parameters to your report.  So I think Thomas Steen's suggestion would be helpful for you.

    Reference:

    http://stackoverflow.com/questions/21179801/report-viewer-rdlc-how-to-pass-a-parameter

    In addition, for report issue, it has own supported forum, if still no help, I suggest you post this issue to the report forum:

    https://social.msdn.microsoft.com/Forums/zh-CN/home?forum=vsreportcontrols&filter=alllanguages

    Best Regards,

    Jack


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, February 17, 2015 12:28 AM
  • Thank you for help Thomas. I tried to press Control+Alt+D but it is not do anything because it don't pressed in RDLC designer.

    Tuesday, February 17, 2015 2:55 AM