Hide or Remove a page from report

edited 2:02AM in FastReport 4.0
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;

Comments

  • gpigpi
    edited 2:02AM
    What page do you want to remove: preview page or page from report template?
  • edited 2:02AM
    gpi wrote: »
    What page do you want to remove: preview page or page from report template?

    The preview page..
  • gpigpi
    edited 2:02AM
    You can delete preview page after report's preparing
  • edited 2:02AM
    And hiding some page? or some other mechanism to skip a page after preparing.?!!?!?


    Thanks
  • gpigpi
    edited 2:02AM
    Do you print each group on separate page?
  • edited 2:02AM
    yes.. (1 group header , many detail , 1 group footer) for each page

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.