Skip to Content
0
Former Member
Dec 20, 2006 at 07:32 PM

Line

15 Views

Hi,

In the <b>main</b> window, for last page i need to draw a vertical line of 10 cm and for the rest of the pages i need to draw the vertical line of 15 cm. But if the number of pages are only one then i need a vertical line of 10 cm only. So,

to achieve this i am writing the logic as:

/: if &sapscript-formpages& eq 1

/: box xpos 'x' ypos 'y' width '0' cm height '10' cm frame 5 tw

/: endif

/: if &nextpage& eq 0

/: box xpos 'x' ypos 'y' width '0' cm height '10' cm frame 5 tw

/: elseif &nextpage& ne 0

/: box xpos 'x' ypos 'y' width '0' cm height '15' cm frame 5 tw

/: endif

But this logic in the main window is not working ok in my testing. For a two page form, vertical line is of 15 cm in both the pages. but i required 15 cm line for the first page and 10 cm line in the second page(last page).

I have created two pages. page1 and page2.

i gave next page for page1 as page2 and for page2, page 2 itself.

Any clue for this problem.