How to remove new line when record empty in crystal report -


sorry if duplicate or etc.

i want display record in crystal report like

string1 | string2 | string3 | string4 |  ------------------| 12345  |  ------------------| 12345  | 

string3 contain 4 field, field1-4

but code did not work that

string1 | string2 | string3 | string4 |  ------------------|  12345 |  ------------------|  12345 |  ------------------|--------|  ------------------|--------| 

what want display record when has data, have 4 record, if 1 or more record contain data other record not create new line, no space taken.

if {table.field1} = "0"  "" else if {table.field2} = "0" "" else if {table.field3} = "0"  "" else if {table.field4} = "0"  "" else {table.field1} & "<br>" & {table.field2} & "<br>" & {table.field3} & "<br>" & {table.field4} 

using can grow , text interpretation html text on crystal report

one wayout using text fields background colour enabled on it.

basic idea place text fields background matching report , write supress conditions text fields when there no data show else supress.

this ensure when there no data text field cover line give impress line not printed.

edit---------------------------------------------------------------

now in below picture have place text field in between line , set background color white matches preiview.

enter image description here check rectangle highlighted part @ end of line

now in preview can see in looks there no line text field placed.

enter image description here


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -