Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

print componentes heading...

edited April 2007 in General
Hi, I have two problems that it would like to know if possesss solution:
I have a report where I have a band heading? this heading it I only can
leave in the odd pages, however must be selected by the user, and in
some situations I do not want that he has left the components heading:
labels? etc? also must be selected by the user? how to proceed?

Louder Mendes
Brazil

--- posted by geoForum on http://delphi.newswhat.com

Comments

  • edited April 2007
    Hi Louder,

    In the HeaderBand.BeforePrint event, first check if the Report.PageNo is
    even or odd. If it is odd, you can set the visibility to True and then
    toggle the visibility of any other components you need to control. If it is
    even, set the visibility to False.

    ppHeaderBand1.Visible := (ppReport1.PageNo mod 2 = 1);

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.