Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On Entry and On Exit
Message
 
To
08/11/2000 10:03:22
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:
00439293
Views:
23
>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
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform