Application Development and Automation 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: 
Read only

Smartform problem

paulagarca
Explorer
0 Likes
1,238

Hello colleagues!

I have a problem with a Smartform, I hope someone can help me!!

I want to print in a smartform several lines and I want them to have the same length, similar to justified style. Since they are different lines and not a paragraph, I can not apply the smartstyle to justify the text.

Is there any way to indicate that every line has to have the same size?

Thanks a lot in advance!

Kind regards,

Paula

8 REPLIES 8
Read only

Former Member
0 Likes
1,181

Hi,

Use the Program lines and check the lenght of each value gonna print using function "Strlen" and control your printing.

Regards,

VS

Read only

0 Likes
1,181

I can not control the lenght of the lines, because I do not want to break any word. So, there are lines of 79 characters and lines of 84, for example.

I just wanna adjust the width of the characters to the page, but since they are indepent lines, the option justify text in smartstyle does not work.

Read only

JuanCarlosDelga
Contributor
0 Likes
1,181

Hi Paula,

in both, Sapscript and Smartforms you can't justify the text. If you need these typical word processor capacities use a doc template to achieve your goal. Yoa have an example in SE83.

Regards

JCD

Read only

0 Likes
1,181

Hi Juan Carlos,

I looking for an example of this problem in SE83, but I do not find it.

Is there a way to indicate that all lines depend one of each other, so I can justify all the test?

I do not have more ideas

Thanks VS and JCD!

Read only

0 Likes
1,181

Hi Paula,

can you use adobe forms in this case?

This tool is more flexible than the other ones.

Regards

JCD

Read only

0 Likes
1,181

Hi Paula,

Hope it help full.

Try,

Create a smart style with different fonts.

if count < 79.

Normal Font.

else.

Small Font.

endif.

Some how length will be minimized because of font size.

Regards,

Venkat.

Read only

0 Likes
1,181

Hi JCD,

I am afraid I can only use a Smartform .

Thanks!

Read only

0 Likes
1,181

Hi Venkat,

I can not have different sizes of fonts. It is supose to be the same paragraph with the same font size.

Thanks anyway!

Regards,

Paula