Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.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/8/api/5.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
Crystal reports 抑制节水晶报告中的行_Crystal Reports - Fatal编程技术网

Crystal reports 抑制节水晶报告中的行

Crystal reports 抑制节水晶报告中的行,crystal-reports,Crystal Reports,所以我的两个子报告一个接一个地来了。在这种情况下,我得到了两行 一个接一个(一个来自子报表1页脚,另一个来自子报表2页眉) 现在,当有第二个子报告被搁置时,我需要抑制第一个子报告中的行。您有任何条件隐藏或显示子报告吗?您希望总是对SubRpt 1隐藏页脚还是有条件地隐藏页脚? Hi All I have a report having two sub reports In 1st sub report i have a line in report header and footer. And

所以我的两个子报告一个接一个地来了。在这种情况下,我得到了两行 一个接一个(一个来自子报表1页脚,另一个来自子报表2页眉)
现在,当有第二个子报告被搁置时,我需要抑制第一个子报告中的行。您有任何条件隐藏或显示子报告吗?您希望总是对SubRpt 1隐藏页脚还是有条件地隐藏页脚?
Hi All I have a report having two sub reports
In 1st sub report i have a line in report header and footer.
And in 2nd sub report i have a line in report header and footer.
I have not tried this solution but I think it will help.

    1] Create a global variable in your second sub report. 
    2] Set its counter to 0 and increment its value with the number of rows you are getting in  2nd sub report. 
    3] On 1st sub report go to format sub report and in suppress formula check whether global variable is greater than 0 if yes then it will suppress 1st sub report.

Not sure with the execution flow of crystal reports but its worth giving a try. let me know if you succeed.

Thanks,
Pratik