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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

141041 Nov 20,2018 10:14 AM UTC Nov 29,2018 11:36 AM UTC ASP.NET Core - EJ 2 3
loading
Tags: DocIO
Ootam Seewoogoolam
Asked On November 20, 2018 10:14 AM UTC

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

Dilli Babu Nandha Gopal [Syncfusion]
Replied On 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. 



Ootam Seewoogoolam
Replied On 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

Dilli Babu Nandha Gopal [Syncfusion]
Replied On 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. 


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

;