Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Hide Report Footer Post Reply Post New Topic
Author Message
AngeloF
Newbie
Newbie
Avatar

Joined: 13 Apr 2012
Location: Italy
Online Status: Offline
Posts: 18
Quote AngeloF Replybullet Topic: Hide Report Footer
    Posted: 17 Apr 2012 at 1:18am
Hi all!

I have a report footer with some text,
so, I want delete this section if I don't have records in the last page?
How do i do?
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 17 Apr 2012 at 5:55am
have a flag that is reset every page.  If a record is printed, it sets the flag, then for the report footer, in section expert, x-2 button by suppress:
 
shared booleanvar flag;
flag
 
 
in this example, flag is reset to true every page, and if a record is printed, it is set to false
 
HTH
IP IP Logged
AngeloF
Newbie
Newbie
Avatar

Joined: 13 Apr 2012
Location: Italy
Online Status: Offline
Posts: 18
Quote AngeloF Replybullet Posted: 17 Apr 2012 at 6:46am
How I do to set the flag when the record is printed?


PS:

putting this code

Shared booleanVar Flag;

Flag;

in
Suppress of Report Footer Section, It doesn't work, Why ?


Edited by AngeloF - 17 Apr 2012 at 7:26am
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 17 Apr 2012 at 10:48am
create a formula like:
shared booleanvar flag := false;
""  //hide the output
 
place the formula in the detail section (or whatever section will be printed when a record is displayed)
 
 
in the page header there would be a formula like:
shared booleanvar flag := true;
""//hide the output
 
 
 
IP IP Logged
AngeloF
Newbie
Newbie
Avatar

Joined: 13 Apr 2012
Location: Italy
Online Status: Offline
Posts: 18
Quote AngeloF Replybullet Posted: 17 Apr 2012 at 10:12pm
The problem is in the Report Footer Section :

The below code doesn't work

Shared booleanVar Flag ;

Flag ;

Why? It's weird? Right?


P.S.:

May depend from the version of crystal reports, that is 8.5.0.2017 ?



Edited by AngeloF - 17 Apr 2012 at 10:24pm
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 18 Apr 2012 at 3:20am
just for fun/debugging, change it something like:
Shared booleanVar Flag ;
true
 
//see what happens
 
 
now change it to false, and see what happens, and see which works the way you want, and then make the flag have the same value.
IP IP Logged
AngeloF
Newbie
Newbie
Avatar

Joined: 13 Apr 2012
Location: Italy
Online Status: Offline
Posts: 18
Quote AngeloF Replybullet Posted: 18 Apr 2012 at 5:15am
it  works!
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.015 seconds.