Help in getting the Text Actual Size

Stimulsoft Reports.NET discussion
Post Reply
miggie_ra
Posts: 1
Joined: Wed May 07, 2008 10:45 am
Location: UK

Help in getting the Text Actual Size

Post 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

Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Help in getting the Text Actual Size

Post by Vital »

You can use following method - GetActualSize.

Thank you.
mgarier01
Posts: 3
Joined: Fri May 02, 2008 9:00 am

Help in getting the Text Actual Size

Post 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
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Help in getting the Text Actual Size

Post by Vital »

Hello,

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

Thank you.
Post Reply