Passing parameters to crystal reports in C#

前端 未结 5 1562
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-05 21:16

I\'ve been trying to get this to work for a while, and all the example code I\'ve seen aren\'t quite doing what I\'m doing.

I have a program that returns a pdf of a

5条回答
  •  忘掉有多难
    2020-12-05 21:57

    just do one thing and your code will run automatically set the data source first before adding parameters...

     crp rpt = new crp();
     rpt.SetDataSource(dt);
     rpt.SetParameterValue("p",p.ToString());
    

提交回复
热议问题