Hi Shamsul,
Thank you for your interest in Syncfusion products.
Your requirement to preserve date format or hide time part if
time is 00:00:00 AM is achievable using DocIO, while mail merging Word document
with date value from a data table.
1.
Define date format for the
mail merge field in the input Word template document as below.
Syntax: { MERGEFIELD “Mergefieldname” \@
“ DateTime Format” }
Example: { MERGEFIELD Date \@
"dd-MMM-yyyy" }
2.
Format the merged date value
if time is 00:00:00 AM, on demand while mail merging using mail merge event
handler of DocIO. Please refer our UG documentation from the below link for
more information regarding mail merge event of DocIO.
UG link:
http://help.syncfusion.com/ug/windows%20forms/documents/mailmergeevents.htm
We have prepared sample to illustrate the above mentioned
solutions while mail merging using DocIO. Please do find the attached sample
and let us know this helps you.
Please let us know if you have any other questions
Regards
Nithya
Attachment:
Sample_MailMegeWithDateTime_51d6c256.zip