Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
XML
whileprintingrecords;
Global NumberVar Note;
IF(LTRIM(RTRIM({SP_InterviewReport;1.NOTES}))<>'') THEN
    Note:=ToNumber(Note)+1
ELSE
    Note:=ToNumber(Note);


heading col3 suppress formula
VB
IF(Note=0) THEN
FALSE
ELSE
TRUE;
Posted

1 solution

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[^]
 
Share this answer
 
Comments
Manas Bhardwaj 21-Aug-12 3:59am    
5ed
Prasad_Kulkarni 21-Aug-12 4:40am    
Thank You Manas!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900