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

PageNo problem

edited October 2003 in Subreports
I am using subreports to print a common footer on all reports. I load the
report into the subreport at runtime.
I have a ppSystemVariable to print the page number, but it resets on each
page. How do I get it to print the absolute page number of the report.

Thanks,
--
Rick Dement
Ideal Software Systems, Inc.

Comments

  • edited October 2003

    The SystemVariable is not going to work because the subreport generates once
    for each report. The generation process is essentially like running a new
    report from beginning to end.

    Use a Variable (or Label) and in the OnCalcEvent code

    Value := 'Page ' + InttoStr(Report.MainReport.AbsolutePageNo);




    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2003
    Thanks, That works

This discussion has been closed.