Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On Entry and On Exit
Message
From
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:
00439236
Views:
26
>>I am printing several sets of possibly multiple page reports, i.e., for each ID there may be multiple pages of the detail band.
>>
>>i am using the following UDF to set a variable that is initalized in the form calling the report:
>>
>>*CHKLB
>>LPARAMETER in_lb
>>IF in_lb = pclb
>> RETURN .T.
>>ELSE
>> pclb = in_lb
>> RETURN .F.
>>ENDIF
>>
>>I am trying to use the On Entry and On Exit events to trap the last page of a given ID. I have tried putting the following: chklb(lb_id), in the On Entry and On Exit methods of every band on the report, one at a time, with no success. The closest I came was putting it in the On Exit method of the last group footer on the report. I noticed that the pclb value was the same as the ID on the current page except for those IDs where mulitple pages were present, where the first page had the prior pclb value and subsequent pages had the current pc value, ah success! But then the next page with a new ID had the same pclb value as the previous ID where is should have had the current ID to make the system work.
>>
>>Any ideas???
>>
>>TIA
>>Dave Emerson
>
>
>Dave,
>
>Could you explain what you are trying to trap and why. I'm not sure what you are trying to do once you determine the last page of an ID. Do you need to print something on the last page of an ID? Do you need to remember the page number? What is your purpose for 'trapping' the last page of an ID?
>
>Cathy

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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform