Enable/disable static component (label or line) by condition.
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
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
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thanks again Nico.
Serge Goupinets