cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms: no page break between last line item and footer in table?

former_member699400
Active Participant
0 Kudos

Hello All,

my smartform has FIRST and NEXT pages. I would like to avoid a page break between last item line of a table in MAIN window and the footer of the same table.

Here is how it looks currently.

Output of FIRST page, MAIN window, table ITEMS:

1.line item

2.line item

3.line item

4.line item

page break

output of NEXT page, MAIN window, table ITEMS:

1.footer line

2.footer line

I would like that if a footer does not fit on FIRST page, it would be displayed on NEXT page with last item line.

It should be like this:

output of FIRST page, MAIN window, table ITEMS

1.line item

2.line item

3.line item

page break

output of NEXT page, MAIN window, table ITEMS

4.line item

1.footer line

2.footer line

Any ideas?

Thanks and best regards,

Mindaugas

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member196280
Active Contributor
0 Kudos

Do you mean line item text or your want to print footer text?

If your trying yo display some footer text, then you either place a footer window or you can create a table inside your main window and place text under the footer of the table, then it will display the text without any page break.

If it is item tem.

Then you need to build additional logic. As we cannot guess, the total number of item text upfront.

Example: if page1 can hold 15 line items, check whether your header and item can fit in page one else call a new page by placing a condition FLAG = "X".

I hope it will help you to solve your problem.

Regards,

SaiRam

0 Kudos

Hi,

count the number of lines per page. And make use of this count to print entries on the first page and before the last line item call next page.

Regards,

Antim