Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

in script

Former Member
0 Kudos
120

in script iam printing the address in footer as a continuous line(all the fields name1,name2,street,land1...in one line).

but the problem is when it is extending the line watever the space is available is printing in one line and the remaining lenght of field is going to second line i want to print the total field in one line only (client req.)

ex. name1, name2 street phone no iam printing

in first line it is printing name1,name 2, street and half of phone number.. 022 in first line and the number 7777777 in second line.

can i protect the field to be printed in one line

6 REPLIES 6

Former Member
0 Kudos
65

Try to increase the width of ur window,this due to the size of the window only u are facing this problem.

Check and let me know if u face any problem.

Regards

0 Kudos
65

write like this way.it is possible number is right justify so there is no more place in window if u using this way it become left justfy and may be it is fit in ur window.

<b>&phone number(L)&</b>

Former Member
0 Kudos
65

Hi Vijay,

If you print the Address in one line it shoulb be print in Single line only ..

if you write like the below in your Script,it will print in single line, make sure that the <b>total address lenght should not increase the window lenght</b>,

/: &name1& ,&name 2& , &street& &Phone_No&

Regards

Sudheer

Former Member
0 Kudos
65

The solution can be to increase the width of the window..to the maximum possible as per your page size.

Secondly, I would suggest to use CONCATENATE statement in your print program and use the string in the script. The advantage would be the trailing spaces would be truncated.

CONCATENATE NAME1 NAME2 STREET PHONE INTO LSTR SEPARATED BY SPACE.

And in your script.

&LSTR&

former_member184619
Active Contributor
0 Kudos
65

Hi Vijay,

Just increase the window size to have the values printed in one line.

Wat script does it pass the values to nest line if window width is less.

Reward if helpful.

Sachin

Former Member
0 Kudos
65

This message was moderated.