cancel
Showing results for 
Search instead for 
Did you mean: 

Main Window problem

Former Member
0 Kudos

Hi All,

This is urgent..

I have to print the lines in main window. In my script..i have defined 2 pages. On the 1st page the data appears in main window..and if the no. of lines are more then the data should get printed on the next page in the main window. Now the main window size on the 2nd page is different, so i increased the length of the vertical lines in the main window of 2nd page. But this also makes the same changes in the content of the 1st page main window.

How do i do this???

Plz help soon..

Niyati

Accepted Solutions (1)

Accepted Solutions (1)

former_member196280
Active Contributor
0 Kudos

Try to create one more window similar to main window and place it on main window. Now you can draw all the line on this window. You can always read the page numbers.

Ex:

If page 1

draw 15 vertical lines in <new window>

Else.

draw 20 Lines in new window.

I hope this will solve your issue.

Reward points to all useful answes.

Regards,

SaiRam

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Niyati,

for the horizontal lines you should have written like...

/: BOX XPOS '13' CM YPOS &v_ypos& WIDTH 0 TW HEIGHT 1 CM FRAME 10 TW

in your program/script you should have incremented the variable of ypos..

put another condition saying..

if &v_ypos& = 20 and &page& = 1.

&v_ypos& = 1.

elseif &v_ypos& = 25.

&v_ypos& = 1.

endif.

hope this helps..

Regards,

Vidya.