Dynamic Height of Objects
I need to determine the Height of a region within my GroupFooterBand. The
problem that I am stuck with is that the region is set to Stretch and the
size varies depending on the size a a memo box within the region.
How can I determine the height of the region? I have tried this on the
AfterPrint event of the GroupFooterBand, but the height returned is the
hieght of the region in design mode.
--- posted by geoForum on http://delphi.newswhat.com
problem that I am stuck with is that the region is set to Stretch and the
size varies depending on the size a a memo box within the region.
How can I determine the height of the region? I have tried this on the
AfterPrint event of the GroupFooterBand, but the height returned is the
hieght of the region in design mode.
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
What ultimately are you trying to accomplish? If you are trying to place an
object below the memo or region, you can simply have it shift relative to
the stretchable object. If the object is not stretchable such as a label,
you can place it into another region and then use the ShiftRelativeTo
property.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
What I am trying to do is to centre allign an object vertically in the
region, for which I need the run time height of the region.
I have tried doing this in different events, but the design height is
always returned.
Regards
place an
to
label,
The
the
--- posted by geoForum on http://delphi.newswhat.com
The best way to determine the height of a memo before it is printed is to
use the TCanvas.TextHeight routine and multiply that by the number of lines.
Another option would be to take a look at the Report.Engine.PrintPosRect.Top
property at different points during generation. This property will give you
the exact position on the page (in microns) that generation is currently
taking place.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com