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 4:03PM
    Just write Page1.Visible := False in the Page1.OnBeforePrint event.
  • edited 4:03PM
    Thank U it's OK !!
  • edited 4:03PM
    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 4:03PM
    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

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.