Skip to Content
0
Former Member
Jul 08, 2015 at 11:58 AM

Crystal not accepting new line character

332 Views

Hi All,

We are using Crystal 2013 connected to ECC database. In ECC - FM side, multiple line items with special and new line characters are maintained as text description. However, Crystal report is not able to recognize the new line character. Previously, crystal report was displaying “<(>” instead of new line character, so we placed a logic: replace({text_desc},"<(>",chr(10)) and it was working fine.


However, we found 1-2 cases where crystal was still not able to recognize new line character and is displaying in a single line irrespective of new line character given in ECC.

Logic1

stringVar array x := split({text_desc},chr(10));

Local numberVar i;

Local stringVar outputString := "";

outputString := x[1] + Chr(10);



Logic2

stringVar array x := split({text_desc},chr(10));

Local numberVar i;

Local stringVar outputString := "";

For i:=1 to Count(x) do

(

outputString := outputString + x[i] + Chr(10)

);

The above two are not working as expected.