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

system variable

edited August 2004 in General
Hello

I used a system variable to indicate the page (PageSet) in a footer.
In the report there is a title, a header, a detail and a footer. The footer
starts to the second page but the number begin to the first.
I would like to the number in the footer start to count only on the second
page.
Could you help me?
Thanks
Regards

R?gine LEBRETON

Comments

  • edited August 2004
    Hi Regine,

    Unfortunately the SystemVariable component cannot be customized in this way.
    I would suggest using a TppVariable instead and changing its value and
    visibility accordingly. See the example code below...

    procedure TForm1.ppFooterBand1BeforePrint(Sender: TObject);
    begin
    if ppReport1.AbsolutePageNo = 1 then
    ppVariable2.Visible := False
    else
    begin
    ppVariable2.Visible := True;
    ppVariable2.Value := ppReport1.AbsolutePageNo - 1;
    end;
    end;

    --
    Best Regards,

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