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