Hello experts,
Please help me out. Thanks in advance.
i need to know the height of the main window at run time to do some thing based on that. My main window has a table in it and has many conditions to print certain text or not and thus i need to know how much size it occupied in the page. I know that main window height cant be set/changed dynamically but i dont want to change but just want to know is there any field or variable in the smartform program that will indicate the height of the window that occupied for each page.
business requirement of smartform is,
there is always constant content (15% of one page height) which always appears at the bottom of the page only once at end of the all the content to be displayed. if it is one page it will appear in the first page and if it is two pages then it will appear at the second page.
i have designed this as two window one is main window and other is normal window and placed them some thing like overlapping, so that i dont want to waste 15% height of the main window if it is not overlapped. Problem is if i have main window which occupies only about 70-80% height then it will print nicely.. but in some case if it main window occupies about 80-90% then main window and other window overlaps. so that i want to know the height of the main window occupied at run time so that i will trigger a new page if main window reaches certain height.
I have tried all the way that i could try and still haven't succeeded yet, i cant try to read the table data and determine height but there is many conditions inside and i couldnt do that.
I hope some one would have ideas on this, thanks in advance.