Page 1 of 1

Help in getting the Text Actual Size

Posted: Wed May 07, 2008 11:09 am
by miggie_ra
Hi,

I just started using this report tool and I think its great.
I have a little problem that I need a work around.

I am building the report dynamically or I should say at runtime.
Looping around and creating the design of the report based on the dataset that I have.
I create Labels and Text...My problem I need to get the exact Height of the Text based on the value assigned to it.
So that I can set the postion of the Text object relative to the postion of the object above...
I have a variable that keep tracks of the position then I check it against the page height then decide whether
I need another page or not.

These are the current property setting.
I set the Text Can Grow property to True and WordWrap to True.
-------
everything is designed properly except for when the Text Grows. It pushes all other object at the bottom of the page
and hidden from the view.

Any help would be apprecialted.

Many thanks,

miggie_ra


Help in getting the Text Actual Size

Posted: Wed May 07, 2008 4:46 pm
by Vital
You can use following method - GetActualSize.

Thank you.

Help in getting the Text Actual Size

Posted: Thu May 08, 2008 2:54 am
by mgarier01
Hi,

Thanks for the reply. I forgot to mention that I already tried GetActualSize. But it doesn't return the correct height against the text value.

miggie_ra

Help in getting the Text Actual Size

Posted: Thu May 08, 2008 7:22 am
by Vital
Hello,

Please show part of code which you are use for measuring.

Thank you.