Print Header and Footer with Empty MasterData

edited November 2011 in FastReport 3.0
Hy i'm using FastReport 4.9.89 with my Delphi 2009 Enterprise, and i've a problem :

My Report is construct like this :

HEADER1
MASTERDATA1
FOOTER1


i work fine if my QUERY SQL has a Result, but if my Query resul is Empty, the Header and Footer are not in the Printing !!

I h've search in the Forum, i find this :

procedure Page1OnBeforePrint(Sender: TfrxComponent);
begin
if MasterData1.dataset.RecordCount = 0 then
begin
MasterData1.Dataset := Nil;
MasterData1.RowCount := 1;
end;
end;

but it no work !!

If Anyone can help me thank !!

PS : Sorry for my English i'm french >

Comments

  • edited March 2022

    I know this is an old question, but i have the same issue --- any answers?

    FR 2022.1.6

    Delphi 11.1

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.