cancel
Showing results for 
Search instead for 
Did you mean: 

How to find remaining space left in the main window

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

In the output options you have a checkbox with page protection. This ensures you that that part will be printed together at 1 page.

Gr, Frank

Former Member
0 Kudos

in main window you have table in this table the options are

HEADER

MAIN AREA

FOOTER

if you click the FOOTER in the right hand side you have OUTPUT OPTIONS

here you find the FOOTER WITH HIGHT , there normally its have 1--LN here you can change the hight like 0.01 MM, so that you wont find the space...

Former Member
0 Kudos

Hi,

In smartforms, there is no other way to find the remaining height of the main window on a page.

Hence, another way to solve this is to restrict the contents of the table with templates designed such a way that if there is header and items then display exactly a set of rows which would fit clearly on a page.

Also make the folder as page protected.

This is tedious but there is no other way i think as we also faced similar kind of issue.

Regards,

Ram

Former Member
0 Kudos

Hi,

To get the header in the main window,

use

/:  TOP
"*** header details
/:  ENDTOP

for footer details
/:  BOTTOM
"*** Footer details
/:  ENDBOTTOM

"write all other details

Regards,

Siddarth