Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add Summary Band in Code
Message
From
26/09/2016 16:07:37
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01641358
Message ID:
01641373
Views:
37
Likes (1)
>Hi,
>
>Do you know if it is possible to add a Summary Band to a report, from VFP code? A customer wants a certain note to be printed at the bottom of certain reports (these are more like forms than reports although they can span over more than 1 page). I think that the way to do it is to dynamically (in code) add a Summary Band to these reports (for this customer). The summary could have a label or a text placeholders that will get the text/value from a .txt file. But how do I add a Summary Band in code?
>
>TIA

Since the FRX/FRT is basically a DBF file, then you should be able to adjust the report form at runtime by adding and removing records, then adjusting the various values for the sizing and positioning accordingly. Downside is that it's potentially messy and confusing when it involves not only adding/removing bands or resizing them, but also changing the sizing and positioning values, and the possibly confusing bit is that the units are dependent on one of the "header" records of the FRX/FRT. Doable, but probably a bit messy (I do have code that I've written for adjusting size of page footers in VFP6 -- where there isn't an "stretch with content" option for the page footer).

It might be simpler to have two different copies of the report form -- one with the summary band and one without, then select the appropriate one.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform