What i want to do is create a label give it content, a width, font type and font size then determine the height of the label (so i can add the next label right under it or perhaps page break etc).
Is it possible to test render the content at all then check the height? should i be using a different object type to do this?
Determine Rendered Height of labels
Re: Determine Rendered Height of labels
Support · Aug 20, 2008Hello,
It is not possible to modify the height of the label page element depending on the text you are adding. You will have to use TextArea page element so that you can get the height required for the text you are adding by using the GetRequiredHeight method of the TextArea object. You will have to set the TextArea
height and some padding to add the other page element to the pdf document.
Thanks,
ceTe Software Support Team
Re: Determine Rendered Height of labels
Forum member · Aug 21, 2008The text area object seems to be what i wanted to use from the start
many thanks
Tim