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. Image for the cookie policy date

Avoid page break on a particular content group/section after mail merge

Hi guys,

I need to some to solve a particular issue. Is it possible to explicitly disable page break on a group/section after a mail merge?

On the document template, we have a group 'Bicycles' which should not break across two page. How can this be achieved? if needed, it should page break


I have attached a sample project to illustrate the issue.

Thanks again.


Attachment: Docio_Test2_80823b4.zip

3 Replies

DB Dilli Babu Nandha Gopal Syncfusion Team November 21, 2018 07:32 AM UTC

Hi Ootam, 

Thank you for contacting Syncfusion support. 

Yes, it is possible to maintain Bicyles group in a single page without page breaks. We have modified the sample based on your requirement which can be downloaded from the following link. 

The following things has been done in the sample. 
  1. Modified the input template document by inserting page breaks for maintain group in a page. 
  2. Loaded the document and performed mail merge. 
  3. Removed the empty paragraph and unwanted page breaks. 

Please let us know whether the sample fulfills your requirement. 

Regards, 
Dilli babu. 




OS Ootam Seewoogoolam November 29, 2018 04:38 AM UTC

Thanks for the reply. but this does not seems to work for the second record. It does get moved to a new page.
Please see screen shot below.



Attachment: Docio_Test2_80823b41289010543_7bf84886.rar


DB Dilli Babu Nandha Gopal Syncfusion Team November 29, 2018 11:36 AM UTC

Hi Ootam, 

Thank you for your update. 

We have modified sample based on your requirement which can be downloaded from following link. 

Please let us know if you have any questions. 

Regards, 
Dilli babu. 


Loader.
Live Chat Icon For mobile
Up arrow icon