on 06-13-2008 10:12 AM
hey plz help me out with this
i have to print material decription in my form which is if 40 char but i dnt want to print it in one line.it should be split in two lines. as if it comes in one line then it overlaps with the thing i'm printing after it.how to do that?
points will be definitely rewarded
hi
Split the decription in two parts using offset.
Reward if useful
Richa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if u are passing the material description from printprogram to the smartform, then split it in the following way...
suppose the the variable that u are using is
wf_desc.
insert a code line in the smartform..
and write..
data : wf_len type i.
data : wf_desc1 type string.
data : wf_desc2 type string.
wf_len = strlen(wf_desc).
if wf_len > 40.
wf_desc1 = wf_desc+0(40).
wf_desc2 = wf_des+40.
then use those two variables(wf_desc1, wf_desc2) now for printing....
hope it works...
Reward if useful...
Regards
Rudra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You would have to get half of the word on your next line. Try this as a reference
&SPELL-WORD0(60)& This will print the words first 60 characters in the first line, in the next command you could write &SPELL-WORD61(40). This is just an example. You would have to check the total length.
this would work for sure.
Thanks
Nayan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.