Crystal Reports keeps prompting for Parameter

前端 未结 2 708
失恋的感觉
失恋的感觉 2020-12-19 16:18

I am having a terrible problem with crystal report 2010 for .net 4.0 (I am using the fixed 13.0.1 version but 13.0.4 is released). No matter which way I try, I am always get

相关标签:
2条回答
  • 2020-12-19 16:55

    create the parameter but do not assign it a formula using selection formula -> record. Apply this parameter from vb or c#.net IDE by creating a text box,a label and a button. Put the selection formula on click button procedure.

    0 讨论(0)
  • 2020-12-19 17:12

    Finally found the solution. It doesn't prompt if we set the DataSource after the ParameterValue.

    So anyone of those will work if we put them in this order:

    // First, call SetParameterValue. Then, call SetDatasource.     
    CustomerReport1.SetParameterValue("PathLocation", Location.Text);
    CustomerReport1.Database.Tables[0].SetDatasource(this.dataset);
    
    CrystalReportViewer1.ReportSource = CustomerReport1;
    

    Thank you all.

    0 讨论(0)
提交回复
热议问题