Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding height of the summary Band
Message
 
 
To
12/05/2021 13:21:43
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01680329
Message ID:
01680336
Views:
18
>>Hi,
>>
>>How do you (by hacking FRX file) find out the height of the report Summary Band? Also, which field identifies that the report has the Summary Band? The reason I am asking is I want to add a Summary Band to a report at run-time. But first, add it at design time and get some information about it.
>>
>>TIA.
>
>A FRX file is basically a DBF file. I believe there's some documentation that came with VFP describing the structure. By manipulating the FRX as a DBF, it should be possible to do things like add/remove elements, resize things, etc One warning however -- it might make you feel you've jumped down a rabbit hole(*).
>
>
>(*) and yeah, I've done some code involving resizing of items -- sort'a got "forced" into this when I'd realized in VFP6 some bands (e.g. page footer, report summary) can not be set to expand/contract dynamically (while in VFP9 you could) -- since the program in question was in VFP6, I needed to write code that could "massage" the FRX at runtime (i.e. modify it to resize/reposition the elements). Currently trying to rework some of that code because the code I was using only worked if the program is working in interactive mode (i.e. with a U/I -- the code doesn't work right if running in non-interactive mode such as within a DLL). I suspect that this has to do with the code not running with a proper device context (i.e. since it's not running with a U/I, any code that may be trying to query font and text metrics will probably not return expected results).

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