Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the PrintWhen for an Entire Report Grouping
Message
 
To
22/10/1998 10:33:31
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00149311
Message ID:
00149429
Views:
25
>Thanks George,
>
>I'm trying to build a flexible report that can be used for a number of situations. For example, they are able to choose whether the objects (all or none) will print on the report by selecting a heading from a listbox. Let's say that they choose a heading called *Section One.* Are you saying that I should pass variables to a UDF for what I know to be all the objects within Section One? If the report changed, I would have to recode for the UDF? Could I build a cursor from the FRX and use it as part of my control for the listbox?
>
>Just trying to find the cleanest, most flexible way to do this...
>
Hi Renoir

Well, you might try playing around with opening the report as a table, issuing a query against the objtype = 9, and indexing the resting of the table based on VPOS. This will give you the height of the various groups in the query, and the location on the page for the output. You could then do a REPLACE based on a BETWEEN() codition for the height of the objects. Then delete the tag, close everything up and run the report. You'll have to play around with the calculations a bit.

Some time ago (before VFP) in FPW, I reversed engineered the report printing process in order to produce text reports. From that experience, I think what you're trying to do is possible, but not easy. Because the vertical position values are in such small increments, you may find some items printing that shouldn't because they fall just outside the range specified. About the only other advice I can offer is to make sure that thing are exactly aligned and have identical heights.

hth,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform