on 07-08-2015 12:58 PM
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.
Hi Sameer,
Does the field have new line feeds in the form of '<(>' or chr(10)?
What does the following formula return:
IF Instr({text_desc}, chr(10)) > 0 then 'CHR1'
else if Instr({text_desc}, chr(13)) > 0 then 'CHR2'
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
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.