cancel
Showing results for 
Search instead for 
Did you mean: 

printing text in last page main window of a script

Former Member
0 Kudos

Hi All,

I want to print some text at the bottom of last page main window.But how can we find that it is last page.I mean which condition we have to put for that.

I think the below condition like

If last-page NE ' 0'.

write : '----


'.......... will be used for printing at last page footer window.

what about main window........how to find that it is the main window of last page............

Thanks in advance ....

Regards,

Rakesh.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

you can use this

IF NEXT_PAGE EQ ' 0 '.

write the text here.

ENDIF.

in the main window itself. Once all the records got printed, it will check that there is no next page. at that time, that was the end of the internal table in the mainwindow and the text will be printed.

If you want a seperate window, then also the same logic will work.

If you want a seperate window, then the output look and feel will not be so good.

I mean where ever the last record got completed, it will print the text if you put it in Main window. other wise statically it will print at a particular position where your window was placed.

Regards,

Venkatesh

Former Member
0 Kudos

Hi,

&NEXTPAGE& eq 0 condition gives you the last page.

You can check this condition in your main window and write the code to be displayed between if and endif.

eg.

if &nextpage& eq 0.

This is final text

endif.

regards

padma

former_member585060
Active Contributor
0 Kudos

Hi,

In your Main window, at the end write command

BOTTOM , ENDBOTTOM, as this command is like END-OF-PAGE in List Output.

Syntax

/: BOTTOM

/: IF &NEXTPAGE& EQ 0.

P1 write the text here.

/: ENDIF.

/: ENDBOTTOM

Regards

Bala Krishna

Edited by: Bala Krishna on Sep 4, 2008 10:17 AM

Former Member
0 Kudos

Hi,

Do you want to write at the end of main window it self or to write text at last page. To write the text in last page it is better to keep the text in the separate window. and trigger the text write the condition as

IF NEXT_PAGE EQ ' 0 '.

write the text here.

ENDIF.

Or else just write the same in the main window itself.

Hope this will help you,

Regards.

Aswini.

Former Member
0 Kudos

Hi Ashwin,

Thanks for your reply.I want to write at the end of main window at last page and i heard the logic

IF NEXT_PAGE EQ ' 0 '.

write the text here.

ENDIF.

will be useful for footer windows only.If so how to write the logic for my requirement.

Regards,

Rakesh.

Former Member
0 Kudos

You just mention the text in your footer whichever you'ld like print after the end of the main window. Select the output options of your footer node. Uncheck the option At page break,check the option At end of table.