DOCIO

Hi,

I have 2 Qs on mailmerge.

Q1. How do I create a pagebreak after <>? I tried inserting page break in Words DOC but it does not work.

Q2. When I insert a fieldmerge and the format I choose "Title Case", it would failed to merge and the output the html of the page I am running at.

Regards



1 Reply

BP Bhuvaneswari P Syncfusion Team October 22, 2008 11:25 AM UTC

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.htm

Please 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




Loader.
Up arrow icon