To switch on/off GroupHeader and StartNewPage from within your Fivewin application you can pass 2 variables and then define the OnBeforePrint condition of the GroupHeader:
Fivewin:
PascalScript in Fast Report
Best regards,
Otto
Fivewin:
if lGruppenKopf = .t.
oFr:AddVariable("Einstellungen", "Gruppenkopf", "'JA'")
else
oFr:AddVariable("Einstellungen", "Gruppenkopf", "'NEIN'")
endif
if lVorschub = .t.
oFr:AddVariable("Einstellungen", "NeueSeite", "'JA'")
else
oFr:AddVariable("Einstellungen", "NeueSeite", "'NEIN'")
endifPascalScript in Fast Report
procedure F_GroupHeader1(Sender: TfrxComponent);
begin
GroupHeader1.Visible := Trim(<Gruppenkopf>) = 'JA' ;
GroupHeader1.StartNewPage := Trim(<NeueSeite>) = 'JA' ;
end;Best regards,
Otto