General information
Category:
Reports & Report designer
>>I am trying to print an "accumulate" or "insert" code on the pages for use with a mail folding/inserting machine. The last page of a set of pages for a given ID would have the "insert" code, while the other pages of the set would have the "accumulate" code.
>>
>>The page numbers are irrelevant and I don't need to remember them.
>>
>>I hope this clarifies the situation.
>>
>>Dave
>
>Dave,
>
>If the accumulate and insert code that you are printing can be located in the footer band, give this a try (It's just theory, but I think it should work) ...
>
>Create a memory variable in the program that runs the report. Create two UDFs as well. The first UDF should set the memory variable to the Accumulate Code. The second UDF should set the memory variable to the Insert Code.
>
>In the Group Band that breaks on the ID, call the first UDF in the "On Entry" expression of the band to set the memory variable to the Accumulate code. Call the second UDF in the "On Exit" expression of the band to set the memory variable to the Insert code. In the Footer band, print the memory variable.
>
>Cathy
Thanks Cathy, that combination seems to do it.
At first I placed the two UDFs in the "On Entry" and "On Exit" of the group header. That didn't work. Then I put the second UDF, which sets the insert code, into the "On Exit" of the Group footer and that did the trick.
As usual, we can almost always depend on the UT.
Thanks again,
Dave
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only