Mail Merge Region - two line breaks are added after each child record

Hello there,

I am calling MailMerge.ExecuteWithRegions(ds), but for the region containing child records above section is replaced as MergeFields at run time, so will look like:

«TableStart:Vendors»
«VTitle» «VForename» «VSurname»
«TableEnd:Vendors»

But when I run mail merge, output document is showing this section as:
Joe Jenkins
Steve Bates

with two line breaks added after each record.

Could you please guide me how I can avoid these extra line breaks in output document.

Thank you!

P.S. Input/Output docs attached.

Hi

Thanks for your request. I think, you should just insert TableStart and TableEnd mergefield in the same paragraph as shown below:
«TableStart:Vendors»«VTitle» «VForename» «VSurname»«TableEnd:Vendors»
Hope this helps.
Best regards.

Thanks for you reply.

When you say in the same paragraph, do you mean the* same line.

If yes, it might not be possible every time as requirement may come up something like:

«TableStart:Vendors»
«VTitle» «VForename» «VSurname»
«VAddress»
«VEmail»
«TableEnd:Vendors»

where Address and Email are required on separate lines.

How to approach in that case to avoid extra line breaks.

Thank you!

Hi

Thank you for additional information. Just insert TableStat in the paragraph which should be the first and TableEnd in the paragraph, which should be the last one as shown below:

«TableStart:Vendors»«VTitle» «VForename» «VSurname»
«VAddress»
«VEmail»«TableEnd:Vendors»

Best regards.