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 3:11AM
    Hi Bill,

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

    Thanks in advance,

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

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

Leave a Comment