We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

DocIO Mailmerge if statement

Thread ID:

Created:

Updated:

Platform:

Replies:

125663 Aug 31,2016 10:08 PM Sep 1,2016 08:59 AM ASP.NET MVC 1
loading
Tags: DocIO
ov
Asked On August 31, 2016 10:08 PM

Is it possible to use DocIO Mailmerge to hide a table if there is no data?

Currently, I have a word template as below.

«BeginGroup:Invoice»

 

Col1

Col2

Col3

Col4

Col5

Col6

Col7

Col8

«TableStart:Datas»«Code» «Description»

«Units»  

«Uom»

«PayRate»

«Factor»

«Amount»

«Start»

«Finish»«TableEnd:Datas»

«EndGroup:Invoice»

I would like to hide the table title if the Datas template table is empty.


Sethumanikkam Yogendran [Syncfusion]
Replied On September 1, 2016 08:59 AM

Hi Customer,

Thank you for contacting Syncfusion support.

Is it possible to use DocIO Mail merge to hide a table if there is no data?
Yes, but DocIO does not have any direct public API to hide table when there is no data while performing Mail merge. Alternatively, we have prepared a sample to achieve your requirement by iterating TableStart from Merge field collections and removing relevant table while performing Mail merge using DocIO.

Please find the Mail merge sample from below link.
http://www.syncfusion.com/downloads/support/forum/125663/ze/MailMergeDocIO_Application1152988637.zip

If we misunderstood your requirement, kindly update us requirement with clear description. Thereby we will analyze further on the mentioned requirement and update you with appropriate solution.

Please let us know if you have any further questions.

Thanks,
Sethumanikkam.Y
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;