Band show only on first page

edited 9:27AM in FastReport 4.0
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

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 9:27AM
    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 DeusAnu de Deus Hampshire, UK
    edited March 2010
    procedure Band1OnAfterPrint(sender);
    begin
    TFrxBand(sender).visible := false; // as this is done AFTER the 1st print, it won't print again
    end;
  • edited 9:27AM
    Thank you for answering...and your idea was perfect...i did exactly what you say and now my report is perfect.

    Thanks a lot

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.