Hi Farouk,
Thank you for your interest in Syncfusion products.
1. How do I create a pagebreak after <>? I am afraid that I unable to reproduce both the issues. I am able to insert page break after the mail merge fields. Please refer the below code snippet to do so:
[C#]
foreach (Entity ent in doc.ChildEntities)
{
if (ent is WSection)
{
WSection section = ent as WSection;
foreach (WParagraph paragraph in section.Body.Paragraphs)
{
foreach (ParagraphItem item in paragraph.Items)
{
if (item is WField && (item as WField).FieldType == FieldType.FieldMergeField )
{
paragraph.AppendBreak(BreakType.PageBreak);
break;
}
}
}
}
}
Q2. When I insert a fieldmerge and the format I choose "Title Case" I am able to merge fields which field formatted as Title style.
Here is the sample for both the cases:
http://websamples.syncfusion.com/samples/DocIO.Windows/F77227/main.htmPlease have a look into the sample and modify the sample to reproduce the issue in our end, so that we can investigate more on this issue and provide a solution.
Best Regards,
Bhuvana