Get the height of the page

Get the height of the page

Forum member · Jun 26, 2008
Hi, How to get the remaining height of the page. and how to maintain the height. Please give me some idea? Thanks & Regards

Re: Get the height of the page

Support · Jun 26, 2008
Hello, You will have to use a variable which represents the available height on the page. Initially you can assign the available height to the page height, you can get the page height by using the page.Dimensions.Body.Height property. When ever you add an element to the page then you will have to update this variable so that it will have the latest height available on the page. You have to subtract the height of the element added from the available height. If you are adding unknown length of text then you can use the GetRequiredHeight method of the TextArea, FormattedTextArea, Lists etc so that you can use this height to update the variable and you have to set this height to the respective element. Thanks, ceTe Software Support Team.