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

Update Page Style after detail generation

edited June 2002 in General
I need to update a field in the page style on my subreport after detail band
generation.
I can't use footer band of subreport because it doesn't print;
I can't use the group footer band because i need to print at the end page.

I use Report Builder 5.55 Professional on Delphi 5 ENT

Any idea?

Thanks to all
fabio @software

Comments

  • edited June 2002
    Do you need to update the content of the page style based on the details of
    that page? Keep in mind that the PageStyle band prints before the details
    do. You can use OnEndPage if you need to perform an update at the end of
    page generation.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

  • edited June 2002
    Sorry, I missed that fact that the field is in a subreport. So if I
    understand correctly you need to update a field in the subreport page style
    after the detail of the main report in which the subreport resides prints.
    Please correct me if I am miunderstanding this. The Subreport.Report object
    still has OnEndPage and OnEndPass events. You can also use the main report
    detail's AfterPrint. Please let me know if I am misunderstanding you
    problem.

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

    "Alexander Kramnik (Digital Metaphors)" wrote
    in message news:3d089d18@dm500....
    of
  • edited June 2002
    I've already tried in all events (also in main report), but the modification
    only happens on the next page to that I am printing.

    Thanks
    @software

    "Alexander Kramnik (Digital Metaphors)" ha
  • edited June 2002
    You need to make this a two pass report because you will be updating the
    content of the page style after it has already printed. Here is an example
    which creates content during the first pass in OnEndPage and sets in during
    the second pass in OnStartPage.

    http://www.digital-metaphors.com/tips/PageStyleUpdated.zip

    --
    Cheers,

    Alexander Kramnik
    Digital Metaphors

This discussion has been closed.