如果详细信息部分中没有数据,则禁止显示页眉 [英] suppress page header if no data in detail section
本文介绍了如果详细信息部分中没有数据,则禁止显示页眉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的Crystal报表中,有一个页面标题,其中包含Col1,col2,col3等.
现在,如果详细部分中没有数据,我想抑制页面标题中的col3
报告中没有组,我正在使用VB.net2008.
我尝试了以下
报告标题
在打印记录时;
全球NumberVar注意;
页面标题
In My Crystal report there is a page header that contains Col1, col2, col3 etc.
now i want to suppress the col3 from page header if there is no data in detail section
there is no group in report, I am using VB.net 2008.
I have tried the following
Report header
whileprintingrecords;
Global NumberVar Note;
Page header
whileprintingrecords;
Global NumberVar Note;
IF(LTRIM(RTRIM({SP_InterviewReport;1.NOTES}))<>'') THEN
Note:=ToNumber(Note)+1
ELSE
Note:=ToNumber(Note);
标题col3抑制公式
heading col3 suppress formula
IF(Note=0) THEN
FALSE
ELSE
TRUE;
推荐答案
您可以从以下类似的线程中获得一些帮助,请看一下:
Crystal Reports-禁止显示页眉该页面有0条记录 [ Crystal Reports-隐藏页面标题如果页面上没有记录 [ ^ ]
..以及更多类似的 ^ ]
You may get some help from following similar threads, have a look:
Crystal Reports - Suppress a Page Header if the page has 0 records[^]
Crystal Reports - Hide page header if there in no record on a page[^]
..and more similar here[^]
这篇关于如果详细信息部分中没有数据,则禁止显示页眉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文