How to hide pages ?

I have a report with 3 pages (tfrPage) : page1,page2,page3.
I have a variable (bPage2) wich is used to make the page 2 visible or not.

How to really make this page not visible : we have not any propertie 'visible' or 'enable' on the tfrPage.

I tried to make the bands not visible and it works but i have a blank page.

Any idea ?

Comments

  • edited 9:54AM
    Just write Page1.Visible := False in the Page1.OnBeforePrint event.
  • edited 9:54AM
    Thank U it's OK !!
  • edited 9:54AM
    I do it this way (from Delphi):

    Form2:= TForm2.Create(nil); //Form2 is the Form with the frReport
    with Form2 do begin
    try
    frReport1.Pages[0].Visible := False;
    frReport1.ShowReport;
    finally
    Release;
    end;
    end;
  • edited 9:54AM
    But how can I hide the first page? It works fine with all pages when I set the visible-property in the prior page. But how can I do that for the first page?

Leave a Comment