Hi,
I'm using the mailmerge feature from Syncfusion DocIO. In Word I try to create a simple address block like the sample below. It contains some mergefields and works fine.
«Lastname» «Firstname»
«Address1»
«Address2»
«ZipCode» «City»
{ MERGEFIELD Lastname \* MERGEFORMAT } { MERGEFIELD Firstname \* MERGEFORMAT }
{ MERGEFIELD Address1 \* MERGEFORMAT }
{ MERGEFIELD Address2 \* MERGEFORMAT }
{ MERGEFIELD ZipCode \* MERGEFORMAT } { MERGEFIELD City \* MERGEFORMAT }
But when a data record has an empty Address1 or Address2, no line should be empty in the address block. In this case next mergefield should follow. In Word it's possible to solve it with "\f", another wayis to create a IF THEN field. With DocIO both options doesn't work.
{ MERGEFIELD Lastname \* MERGEFORMAT } { MERGEFIELD Firstname \* MERGEFORMAT }
{ MERGEFIELD Address1 \f \* MERGEFORMAT }
{ MERGEFIELD Address2 \f \* MERGEFORMAT }
{ MERGEFIELD ZipCode
\* MERGEFORMAT } { MERGEFIELD City
\* MERGEFORMAT }
How can I do this? Thanks a lot for your help.
Kind regards
Christian