Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/316.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C#中的select公式如何使用报表_C#_Crystal Reports_Filtering - Fatal编程技术网

C#中的select公式如何使用报表

C#中的select公式如何使用报表,c#,crystal-reports,filtering,C#,Crystal Reports,Filtering,我想问一个关于以下与C#中的报表相关的函数的问题 此公式是向报表中使用的当前查询代码添加筛选条件,还是创建一个全新的查询 如果没有,是否有其他方法进一步筛选报表?这将向查询添加筛选条件。如果carcode是字符串,则需要将其更改为: crystalReportViewer1.SelectionFormula = string.Format("{Cars.CarCode} = '{0}'",CarCode); crystalReportViewer1.SelectionFormula = str

我想问一个关于以下与C#中的报表相关的函数的问题

此公式是向报表中使用的当前查询代码添加筛选条件,还是创建一个全新的查询


如果没有,是否有其他方法进一步筛选报表?

这将向查询添加筛选条件。如果carcode是字符串,则需要将其更改为:

crystalReportViewer1.SelectionFormula = string.Format("{Cars.CarCode} = '{0}'",CarCode);
crystalReportViewer1.SelectionFormula = string.Format("{Cars.CarCode} = '{0}'",CarCode);