Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Technical Questions
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Technical Questions
Topic: Hide Report Footer
Oldest Post First
Newest Post First
Author
Message
AngeloF
Newbie
Joined: 13 Apr 2012
Location: Italy
Online Status: Offline
Posts: 18
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 Logged
lockwelle
Moderator
Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
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 Logged
AngeloF
Newbie
Joined: 13 Apr 2012
Location: Italy
Online Status: Offline
Posts: 18
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 Logged
lockwelle
Moderator
Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
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 Logged
AngeloF
Newbie
Joined: 13 Apr 2012
Location: Italy
Online Status: Offline
Posts: 18
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 Logged
lockwelle
Moderator
Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
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 Logged
AngeloF
Newbie
Joined: 13 Apr 2012
Location: Italy
Online Status: Offline
Posts: 18
Posted: 18 Apr 2012 at 5:15am
it works!
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
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.031 seconds.
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
CLICK PLAYS
|
COACH FORUMS
|
TROPICAL FISH
© 2004-2024 Brian Bischof. All Rights Reserved.