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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Suppress or remove a row if field is empty

Thread ID:

Created:

Updated:

Platform:

Replies:

145140 Jun 10,2019 01:16 AM UTC Jul 8,2019 08:22 AM UTC ASP.NET Core - EJ 2 2
loading
Tags: DocIO
Sanjay
Asked On June 10, 2019 01:16 AM UTC

Hi

Is there a way 
1.  To remove  a row if the merge field is empty?
2. Suppress line feed if merge fields is empty ?

Thank you
Sanjay


Mohanaselvam  Jothi [Syncfusion]
Replied On June 10, 2019 11:25 AM UTC

Hi Sanjay,

Thank you for contacting Syncfusion support.

Regarding To remove a row if the merge field is empty:
To meet this requirement, we suggest you to get the row of current merge field (which has empty value) using MergeFieldEventHandler and remove the row from table.

Regarding Suppress line feed if merge fields is empty:
To meet this requirement, we suggest you to get the paragraph of current merge field (which has empty value) and insert line break in the Word document.

We have prepared a sample for above both requirements and it can be downloaded from the below link:
http://www.syncfusion.com/downloads/support/forum/145140/ze/Sample-1455086070

Note: Please find the input Word document in “wwwroot\Data” folder of above sample application.

Please refer the below documentation to know more about working with mail merge in Word document using DocIO:
https://help.syncfusion.com/file-formats/docio/working-with-mailmerge

Regards,
Mohanaselvam J 


Sanjay
Replied On July 8, 2019 08:22 AM UTC

Hi

Thank you . This is now working 

Regards

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon