Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add Summary Band in Code
Message
 
 
To
27/09/2016 16:06:54
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01641358
Message ID:
01641428
Views:
33
>>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
>
>I guess the best option is to add, in design mode, the Summary Band to the report, add a text field, as tall as the summary band, where you can set as its expression a function that retrieves the text. And then, on this text field, right-click and choose "Properties..." and then go to the "Print when" page, where you can specify a variable or function that returns .T. or .F. (according to what you need), and do not forget to check the "Remove line if blank" option so that when the text field is not printed, it does not occupy any space.
>
>Hope this helps.

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform