Rotated Label Alignment
Hi,
I am using the Rotated Label that is on the Report Builder web site.
I have the angle set for 180 degrees so that the text is upside down
and Autosize to true.
The problem is that the text does not seem to align to to the left or right.
It previews correctly, but prints more to the left or right, depending
on the length of the text in the label. I am using it to print on a label
88mm
wide and most of the time the rotated label prints off the label to the left
or right.
I need to be able to make the rotated label stay on the right hand side of
the label and print to the left.
If anyone can help I would be greatfull, or if anyone knows of
another roateable label component for RB that would also be good.
TIA,
Luke Johnston
--
I am using the Rotated Label that is on the Report Builder web site.
I have the angle set for 180 degrees so that the text is upside down
and Autosize to true.
The problem is that the text does not seem to align to to the left or right.
It previews correctly, but prints more to the left or right, depending
on the length of the text in the label. I am using it to print on a label
88mm
wide and most of the time the rotated label prints off the label to the left
or right.
I need to be able to make the rotated label stay on the right hand side of
the label and print to the left.
If anyone can help I would be greatfull, or if anyone knows of
another roateable label component for RB that would also be good.
TIA,
Luke Johnston
--
This discussion has been closed.
Comments
only built to work as left aligned. The author redeclared the Alignment
property as protected so it can't be set. We'll have to delve into this
implementation and change it around to allow other alignments.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
Thanks for spending time looking at the code. Is there any sort of time
frame for a fix, or is there something that I can change myself to fix it?
Having the label align properly is important to a user of mine,
so any help in fixing this is greatly appreciated.
Regards,
Luke Johnston.
--
download.
Another option would be to try to reposition the draw commands on the page
for rotated labels so that they align to the right side. Each component has
an OnDrawCommandCreate event in which you can store a handle to that object.
Then in the Report.OnEndPage event, you can manipulate the draw command's
properties. The draw command classes are documented in the help file.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com