Page Header with Child

acgubamg2004acgubamg2004 Ub??-MG
edited 5:13PM in FastReport 3.0
I have the folow situation

PageHeader
Chid of pageheader

script:

var
iConta: integer;

procedure PageHeader1OnAfterPrint(Sender: TfrxComponent);
begin
// Band Page Header = it it does not work !!!
// here only one time is printed matter, to put the space is used in the impression

for iConta := 1 to 3 do
begin
Engine.ShowBand(FilhaCabecalho);
end;


end;

procedure MasterData1OnAfterPrint(Sender: TfrxComponent);
begin
// Print: Band Master - It work !!!
for iConta := 1 to 3 do
begin
Memo1.Lines[0]:= 'child band master = ' + inttostr(iconta);
Engine.ShowBand(Filha1);
end;
end;

begin

end.

Why band FilhaCabecalho doesnt show memo ?

thanks.

Comments

  • acgubamg2004acgubamg2004 Ub??-MG
    edited 5:13PM
    My Solution

    var
    iContaLoop, iConta: integer;

    procedure PageHeader1OnAfterPrint(Sender: TfrxComponent);
    begin
    icontaloop:= 0;
    end;

    procedure MasterData1OnBeforePrint(Sender: TfrxComponent);
    begin
    if iContaLoop = 0 then
    begin
    for iConta := 1 to 3 do
    Engine.ShowBand(FilhaCabecalho);
    iContaLoop := 1;
    end;
    end;

    begin

    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.