Conditional merge fields

I am evaluating your product and I am looking for a way to mailmerge a document using the Word IF conditions statement for mail merge. My applications requires usage of different clauses based on different result of the merge field. It could be an additional paragraph, removal of a row from the table, or differences in gender pronouns (he/she/they/we) etc. I am pressed with time and my first try on your DocIO does not seems to be able to handle a easy {IF {MERGEFIELD "LastName"} <> "" "{MERGEFIELD "LastName"}" "{MERGEFIELD "FirstName"}"} test... (I have modified the employee report demo slightly to test this) To Save time, can it be done or should I look elsewhere?

1 Reply

AD Administrator Syncfusion Team July 12, 2006 08:33 PM UTC

Hi John, Thank you for considering Syncfusion Essential DocIO. 1. Currently we do not have a support for Mailmerge a document with conditional merge field [ IF Field ]. I have filed a bug report regarding this issue with our development team. You can track the live status of this issue here, http://www.syncfusion.com/support/issues/docio/Default.aspx?ToDo=view&questId=2378 2. Also, we offer an event called MailMerge.MergeField which enables you to enhance the capability of Mailmerge. It allow you to implement further control over the mail merge and perform any actions when the event occurs. I have created a simple sample to demonstrate this functionality. Please take a look for this sample and let me know if it helps. http://www.syncfusion.com/Support/user/uploads/MailingLabels_a09fe20a.zip Please let me know if you have any other questions. Thanks, Prabhu.

Loader.
Up arrow icon