Help - Search - Members - Calendar
Full Version: Band show only on first page
Fast Reports forum > Fast Reports Products > FastReport 4.0
Yorgui
Hi every one,

I have a problem, i need a band that can be show only in the first page just before the pagefooter, im allready using the ColumnFooter but i dont know how to hide that band on next pages.
Before that ColumnFooter i have a MasterData band...on the fisrt page everything is good...my Data band show a few records then the ColumnFooter and the page footer...but in the next page i need that ColumnFooter not be there more..if i use the Visible property i got blank space that reduce the page space to show data..i was trying to modify the Height of my ColumnFooter band..but im still cant solve this....

I really apreciate any help, im using Fast Report 4.8.49
gordk
if your masterdataband is always the same height you will have a set number of records after which you need the band.
instead of a column footer use an unattached childband
and write code to use the engine.showband(bandname) method in the oap event of the
masterdata band.
ie..
if (<line#>= 5) and (<page> =1) then engine.showband(childbandname);
Anu de Deus
procedure Band1OnAfterPrint(sender);
begin
TFrxBand(sender).visible := false; // as this is done AFTER the 1st print, it won't print again
end;
Yorgui
Thank you for answering...and your idea was perfect...i did exactly what you say and now my report is perfect.

Thanks a lot
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.