cancel
Showing results for 
Search instead for 
Did you mean: 

Avoiding printing Line item header on last page in scripts

Former Member
0 Kudos

Hi,

My requirement is to print the Standard Text in the last page . When i am doing this the line item Header is displaying in every page.How to avoid the Printing of

Line item Header in the last page.

Please do the needfull...

Thanks,

Sharath

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I guess you are printing the header as hard coded and then Item data.

Try applying this logic:

Keep a condition on header, when printing the header check the no of remaining items it has to print.

For example : If you have 8 line items and 4 items are printing in each page.

1. read the no of items in the item data.

2. Keep the condition on header if items has to print > 0. then print the header.

Or

Keep a condition on the header that like

&page& <> &formapage&

then print the header page.

Br,

Laxmi

Br,

Laxmi.

Answers (1)

Answers (1)

Former Member
0 Kudos

<b>write this code then the Line item header will not be printed in last page

/: IF &NEXTPAGE& NE 0

.......................

Line item header code write here ie, u r standard text

...................................

/: ENDIF

</b>