Hide or Remove a page from report
Hi all, I have this problem.
After first pass i SUM a total of row and if the total is greater then 100 I need to remove or hide the page from report..
Thanks in advance
FB
procedure GroupFooter1OnBeforePrint(Sender: TfrxComponent);
var
nTotal:Integer;
begin
if Engine.FinalPass then begin
nTotal:= Memo3.Value; // THE SUM OF ROWS
if nTotal>= 100 then begin
// <
HERE I NEED TO REMOVE OR HIDE THE CURRENT PAGE
//Page1.Visible := false;
end;
end;
end;
After first pass i SUM a total of row and if the total is greater then 100 I need to remove or hide the page from report..
Thanks in advance
FB
procedure GroupFooter1OnBeforePrint(Sender: TfrxComponent);
var
nTotal:Integer;
begin
if Engine.FinalPass then begin
nTotal:= Memo3.Value; // THE SUM OF ROWS
if nTotal>= 100 then begin
// <
HERE I NEED TO REMOVE OR HIDE THE CURRENT PAGE
//Page1.Visible := false;
end;
end;
end;
Comments
The preview page..
Thanks