print componentes heading...
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
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
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com