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

Odd and even pages

edited June 2002 in General
Am I wrong or ReportBuilder is not capable of handling odd and even pages in
a terms of different headers/footers?

Regards.

Comments

  • edited July 2002
    You can toggle different content in headers/footers based on the page number
    using the header's/footer's BeforePrint event. For example, let's say we
    have an image which we want to only appear on the even pages and a label
    whose content need to vary.

    procedure TForm1.ppHeaderBand1BeforePrint(Sender: TObject);
    begin
    if (ppReport1.Engine.PageNo mod 2 = 0) then
    begin
    ppImage1.Visible := True;
    ppLabel1.Caption := 'Even Page';
    end
    else
    begin
    ppImage1.Visible := False;
    ppLabel1.Caption := 'Odd Page';
    end;
    end;

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

  • edited July 2002
    Thanks on both answers - it works great!


    "Alexander Kramnik (Digital Metaphors)" je
    napisao u poruci interesnoj grupi:3d205e90$1@dm500....
    number
    pages
  • edited July 2002

This discussion has been closed.