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

Calculation

Hi,
I have a report with a global variable.
In a subreport, I increment this variable. On the StartPage event, if page = 1, I initialize this variable to 0.
If the report has more than one page and I print more than one copy, there is no problem. The problem happens when I print more than one copy of only the last page.
How can I initialize the variable for every copy?

Comments

  • edited September 3
    Hi Félix,

    I'm a bit unclear about what you would like to happen when you print a copy of the final page only? Would you like the variable to reset in this case?

    Currently, it appears you are coding a solution similar to our "Unique Caption For Every Copy" example.

    Similarly, this example will break down if the first page is not printed. I believe you will need to keep track of each page printed and check that information during the StartPage event (perhaps in a StringList).
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.