how to add parameters in report viewer?

后端 未结 3 1979
执笔经年
执笔经年 2021-02-13 02:37

HY! I have a form application in visual studio 2010 and I want to create a report with report viewer and to add some parameters. I tried to add parameters from code but it didn`

3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-13 03:05

    Try this:

    ReportParameter PrmInvoiceNo = new ReportParameter("PrmInvoiceNo");
    PrmInvoiceNo.Values.Add(this.InvNo.ToString());
    this.reportViewer1.LocalReport.SetParameters(PrmInvoiceNo);
    

提交回复
热议问题