reprint on page

Hi!

I have a strange problem...

I have a master detail detail detail report.

The reprint on page for the header works ok on the first detail but on the second it seems to reprint the header regardless on the next page if there is any data to come...

e.g.

HDR Blah blah
Detail Data 1
Footer OK

HDR XXX XXX
Detail Data 2

- New Page -
HDR XXX XXX
HDR YYY YYY
Detail Data

I am confused?

Comments

  • edited 5:41AM
    To header was not reprinted try such variant:
    procedure Header2OnBeforePrint(Sender: TfrxComponent);
    begin
     if Engine.FreeSpace < (Header2.Height + MasterData2.Height) 
     then begin
       Engine.NewPage;
       Header2.Visible := false;
     end
     else Header2.Visible := true;
    end;
    

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.