Relocating lables dynamically
Hi, I am using the TRotatedLabel component. What I want to do is vertically
locate the label so that, no matter what the length of it's text, it allway
butts up againts the botton of the detail band or any distance above it I
would like.
The code I thought would work follows:
RotatedLabel1.Top := ppDetailBand4.height -
ppReport1.Printer.Canvas.TextWidth(RotatedLabel1.Text);
I do not know where to put this to have the desired effect. Any help?
TIA, D
locate the label so that, no matter what the length of it's text, it allway
butts up againts the botton of the detail band or any distance above it I
would like.
The code I thought would work follows:
RotatedLabel1.Top := ppDetailBand4.height -
ppReport1.Printer.Canvas.TextWidth(RotatedLabel1.Text);
I do not know where to put this to have the desired effect. Any help?
TIA, D
This discussion has been closed.
Comments
is static? Put this code in in the BeforePrint event of the detail band.
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com