private static void CopySectionProperties(RadDocument fromDocument, RadDocument toDocument) { CopyHeaderAndFooter(fromDocument, toDocument); RadDocumentEditor documentEditor = new RadDocumentEditor(toDocument); documentEditor.Document.CaretPosition.MoveToLastPositionInDocument(); documentEditor.ChangeSectionPageOrientation(fromDocument.Sections.Last.PageOrientation); documentEditor.ChangeSectionPageSize(fromDocument.Sections.Last.PageSize); documentEditor.ChangeSectionPageMargin(fromDocument.Sections.Last.PageMargin); documentEditor.ChangeSectionFooterBottomMargin(fromDocument.Sections.Last.FooterBottomMargin); documentEditor.ChangeSectionHeaderTopMargin(fromDocument.Sections.Last.HeaderTopMargin); }