cancel
Showing results for 
Search instead for 
Did you mean: 

Standard text printed only on one line

Former Member
0 Kudos

Hi experts,

I have a standard text in several lines:

Line 1

Line 2

Line 3

...

but in the pdf form it's printing in the same line:

Line 1 Line 2 Line 3...

Any suggestions ?

/Kiehn

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Kiehn,

Why don't you try using "\n" as a new line character in your code itself. This will set the next word in next line itself, foe example pls follow the code below:

String test ="Test";
   for (int i = 0; i < 10; i++)
	{
		test=test+","+"\n"+"Test "+i;
		
	}
	wdContext.currentDataSourceElement().setTest_val(test);

Hope it helps

Regards,

Gaurav

Former Member
0 Kudos

Hello!

1) When you say you have Standard text is several line that does not mean, that system have is in several lines.

I don't know if you are aware or not, but while SAP system always stores long texts in 70 (or about so) char segments the fact that they are printed on one or several lines is controlled solely by formatting column that precedes each line in TLINES table. So, does your text has line breaks or new paragraph marks before those lines?

2) If everything in above is correct, than maybe you have to check the format you use to transfer text from SAP to Adobe (in interface/context). Please, recheck what is stated [here at SAP Library|http://help.sap.com/saphelp_nw70/helpdata/en/04/ecfab99fc345f8826490df387aaf82/frameset.htm]. All this together with correct format for field (Rich text or Plain text) plus (as stated by poster above) "Allow multiple lines" and "Expand to Fit" (vertically) formatting should do the trick.

Regards,

Petr Perstnev

Former Member
0 Kudos

No, unfortunately it dosn't solved my issue !

Former Member
0 Kudos

Hi,

One thing you can do is select the textfield you binded the standard text and goto object pallette and there select allow multiple lines, and now goto Layout pallette and there select "Expand to fit" under the Height. I think this can solve your issue.

Regards

Pradeep Goli