Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On Entry and On Exit
Message
From
08/11/2000 13:49:50
Dave Emerson
Dc Emerson Consult8Ng, Inc
Destin, Florida, United States
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00439021
Message ID:
00439324
Views:
25
>>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
Map
View

Click here to load this message in the networking platform