Hide page if no data

How can I hide a page if there is no data for that page?

I have a report that has a Monthly, Quarterly, and Yearly Page. These pages all pull from the same dataset and just apply a filter based on the period (The codes M, Q, Y are stored in a column). As of right now, the first quarter has not completed - it is still march.

Right now my Quarterly Page is printing with only a footer. I would like to remove the page. How can I do that?

Also, I want to do this within Fast Report designer - not in Delphi application code.

Thank you,

-Bill

Comments

  • edited 2:09AM
    Hi Bill,

    I am having a similar issue - did you ever find a solution?

    Thanks in advance,

    Taylor
  • gpigpi
    edited 2:09AM
    You may show/hide report pages in the main procedure of the script

    Page1.Visible := MasterData1.Dataset.RecordCount > 0;

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.