Skip to Content
avatar image
Former Member

How to find remaining space left in the main window

Hi Guys,

In one of the smartform there is a MAIN WINDOW, in which a table will be displayed with 3 or 4 entries for each material. ( so that atleast 3 tables are displyed on a single sheet)

Some times if the space is not enough in the main window to display the contents of the table, the contents will be displayed in the next page. (Eg - 1 entry at the end of the page with the header at the end of the page and remaining entries int he next page with the header, which is satisfying the client's requirement)

Problem is some times only header gets displayed at the end(end of the main windw), but so space is avaliable to display the contents, so the contents will be displayed in the next page with the header again,

so the end user will be seeing a header at the end of the page with no contents,

Is there any way to solve this(Not to dislay the header if the contents of the table cannot be displyed)

Is there a way to find the remaining space in the main window dynamically so that if i am able to find the remaining space is JUST 1 LINE ( or CM or INCHES), then I can put a condition for not displaying the header).

Regards,

Naveen.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Mar 09, 2009 at 05:22 PM

    u cannot determine the space remaining but what u can do is include ur header and item details inside a folder node and put a page protection (tick the page protection checkbox)

    кu03B1ятu03B9к

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 10, 2009 at 05:27 AM

    Hi Naveen,

    If your data is spaning through pages use

    Page Protection.

    FOr finding the remaining space there is no method as such but you can use trail and error method.like write few lines and check where exactly is it spanning to the next page and adjust accordingly.

    Much Regards,

    Amuktha.

    Edited by: Amuktha Naraparaju on Mar 10, 2009 6:31 AM

    Add comment
    10|10000 characters needed characters exceeded