cancel
Showing results for 
Search instead for 
Did you mean: 

Adding comments in last page of the script

Former Member
0 Kudos

Hai all

I need to write general comments at the last page in the main window of script.

For example if there are 10 pages i need to write the general comments at the 10th page.

I am checking the condition IF &NEXT-PAGE& = 0 in the MAIN window.

IF &NEXTPAGE& EQ '0'

BOTTOM

INCLUDE &VBDKL-TDNAME& OBJECT VBBK ID Z000 PARAGRAPH IL

ENDBOTTOM

ENDIF

Even if there is no NEXT PAGE its showing the next page as 2.

the Value of the &NEXT-PAGE& is only changing in the footer Window.

But I need to check it in the Main window as well. could anybody suggest me.

Plz note that i am unable to change anything on the print program..

Thanks

Ganesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ganesh,

As you are using bottom endbottom and the text you are trying to print is more,hence it is going to the next page.In case of bottom endbottom if the space available is not sufficient it will print on the next page only.

Thanks,

Dishant

Former Member
0 Kudos

Hi,

Here its not necessary to use bottom and endbottom...My case is I need to write the comments below the items which will be displayed in the main window...for example if the script contains 15 items i need to write general comments at the of end of 15th item....In this case 15 th item will be printed in the second page of script...This is my question...

Thanks

Ganesh

Answers (2)

Answers (2)

Former Member
0 Kudos

Modified Print program

Former Member
0 Kudos

Hi,

Remember never put next page command in the main window it does not work . Instead check some other variable.

Since you are sayimng that you cant modify the print program you need to choose some other alternaltive .

That depends upon your data.

Regards,

Nageswar