Hello all
I am evaluating V4 and the GetRequiredHeight appears to give an erroneous result.
The result indicates that the text needs almost the whole height of the page when in fact it is a single charcter with font size 10
Can you help
Regards
Jide
TextArea GetRequiredHeight
Re: TextArea GetRequiredHeight
Support · Feb 1, 2007Hello Jide,
GetRequiredHeight method of the TextArea is returning a correct value. Please see the following sample example which places a label right after the TextArea according to the height returned by the GetRequiredHeight method with some padding.
Document doc = new Document();
ceTe.DynamicPDF.Page page = new Page();
TextArea area = new TextArea("cete software support team",0,0,50,0);
area.FontSize = 10;
area.Height = area.GetRequiredHeight();
Label label = new Label("ceTe Software", 0, area.GetRequiredHeight()+10, 100, 20);
page.Elements.Add(area);
page.Elements.Add(label);
doc.Pages.Add(page);
doc.DrawToWeb();
If you still have problem with this method then please send over your code to our [^a|mailto:support@cete.com|Support Team^] so that they can take a look at it.
Thanks,
ceTe Software Support Team.
Re: TextArea GetRequiredHeight
Forum member · Feb 1, 2007Thanks for your prompt reply
I seem to have resolved the problem.
The TextArea was constructed initially as TextArea ta = new TextArea(string.Empty, 0,0,0,0).
Then ta.Text = "Blah";
I get the wrong result when ta.getRequiredHeight() is called.
Can you reproduce this??
Regards
Jide
Re: TextArea GetRequiredHeight
Support · Feb 5, 2007Hello Jide,
We are unable to reproduce the behavior at our end and it is working fine.
Thanks,
ceTe Software Support Team.