Hi Darren,
Thank you for your interest in Syncfusion products.
Currently in DocIO while executing group mail merge
operations the group fields must be present within in a single text body. If
section break inserted in between TableStart and TableEnd, then group fields will
be preserved in separate text bodies cause failure in Mail merging Group. So we
recommend that for executing group mailmerge, ensure that the group fields are
available within a single text body.
Please let us know if you have any questions
Regards
Ramkumar
Hi Darren,
Thank you for your update.
document.Mailmerge.Execute function performs
replacements of every merge field in the document, with the corresponding
values from data source
document.Mailmerge.ExceuteGroup function performs
replacements of merge fields with in a group marked by TableStart and a
TableEnd, for each rows of data source. Hence the mail merge fails if the TableStart
and TableEnd presents in different text body.
Regarding Exception throw:
As per your suggestion we have planned to through
exception for this case in our feature release.
Please let us know if you have any question.
Regards
Ramkumar
Hi Darren,
Thank you for your update.
We are not
able to reproduce the mentioned issue with replacement of merge fields in page
Header with corresponding values from data source while calling document.Mailmerge.Execute(dataSource).For
your reference please find the sample from the attachment that we have used to
reproduce mentioned issue.
Could you
please provide us the following?
1) Runnable
sample along with input document to reproduce the issue.
2) Details
of DocIO version that you are currently using.
So that we
can analyze on the exact cause of the issue and provide you the proper
solution.
Please let
us know if you have any question.
Regards
Ramkumar
Hi Darren,
Thank you for your update.
Regarding issue with replacement of merge fields in page Header:
Currently in DocIO while calling document.MailMerge.Execute
function we perform mail merge starting from body section of document then header
section and then footer sections sequentially.
As you have using the NextRecord field to navigate
through each record in data source, once if the data source reaches the end of
record while merging fields in body section then mail merge process terminated
in body section itself, hence the merge field in the header section not merged.
On analyzing your sample we found that you have used the
field “ProgramName” commonly for the entire row. If field “ProgramName” is common
for all the row means then you can merge that particular field separately. For
your reference we have modified you sample code to illustrate this case. Please
find the sample from the attachment and let us know if this helps you
Regarding issue with remove NextRecord field:
Could you please report this issue through Direct Trac
Developer Support System (https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
because you can take the advantage of the expertise of a dedicated support
engineer and a guaranteed response time and we hope you will take advantage of
this system as well. If you have already reported, please ignore this.
Please let us know if you have any other questions.
Regards,
Ramkumar