General information
Category:
Reports & Report designer
>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).
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only