how to suppress first line and third line from a text in crystal report
e.i
field=
abcdef
ghijkl
mnopqrs
result will be
ghijkl
how to suppress first line and third line from a text in crystal report
e.i
field=
abcdef
ghijkl
mnopqrs
result will be
ghijkl
There is suppress option you can give via conditionally on field. Check this links, or you can hide the line too.
suppress line conditional in crystal report
http://scn.sap.com/thread/3373009
http://asad-naeem.blogspot.in/2013/09/conditionally-suppress-line-or-box.html
https://martfish.wordpress.com/2012/03/31/crystal-reports-conditionally-supress-a-line-object/
In the supress of the section write below:
if recordnumber =1 or recordnumber=3
then true
else false
It'll depend on which white space character is separating the lines. This is usually ASCII character 10 (line feed) or 13 (carriage return). In any case you can use the split()
function to get the line you want.
//Returns the second line of a carriage return-delimited text field
split({Table.MultiLineTextField},chr(13))[2]
Or, another example:
//Returns the third line of a line feed-delimited text field
split({Table.MultiLineTextField},chr(10))[3]