Completed
Last Updated: 08 Jun 2012 03:21 by Svetlin
Svetlin
Created on: 08 Jun 2012 03:21
Category:
Type: Bug Report
0
FIX. Inserting page break at last position in document.
The following code does not insert page break among merged documents:


private RadDocument MergeDocuments(RadDocument[] documents)
{
    RadDocument mergedDocument = new RadDocument();

    foreach (RadDocument document in documents)
    {
        foreach (Section section in document.Sections)
        {
            Section copySection = section.CreateDeepCopy() as Section;
            document.Sections.Remove(section);
            mergedDocument.Sections.Add(copySection);
        }

        mergedDocument.CaretPosition.MoveToLastPositionInDocument();
        mergedDocument.InsertPageBreak();
    }

    return mergedDocument;
}
0 comments