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

Enable/disable static component (label or line) by condition.

edited July 2007 in End User
Hi.

Could you help me with what seems to be a simple issue but I cannot find a
good answer how to do that? I have an invoice report containing multiple
documents and each invoice could have more than one page. I need to stick a
mark (a label or a line) on each invoice last page (let's say in invoice
header). If an invoice has only one page this mark is needed as well. I
tried to make the mark visible/invisible in before print header band event
but how can I check that this is the last page in the current invoice (in
invoice group)?

Thanks,
Serge Goupinets

Comments

  • edited July 2007
    Hi Serge,

    You can use the Report.PageCount and Report.PageNo properties to determine
    which page you are currently generating in a group.

    1. Be sure you have the Report.PassSetting set to psTwoPass.

    2. Note that the PageCount and PageNo properties will give you information
    for the specific group and AbsolutePageNo, AbsolutePageCount will give you
    information for the entire report.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2007
    Thanks, it works. Also I am very impressed how fast I have got a response.
    Thanks again Nico.

    Serge Goupinets

This discussion has been closed.