I use there code to make a docx file
RadFlowDocument document = new RadFlowDocument();
RadFlowDocumentEditor editor = new RadFlowDocumentEditor(document);
editor = new RadFlowDocumentEditor(document);
editor.insertText("this is page 1 ");
// but the problem is I want to insert text in another A4 page like
editor.insertText("this is page 2 ");
According to the document telerik I found that we can set up "section" for A4 page
http://docs.telerik.com/devtools/aspnet-ajax/controls/wordsprocessing/model/section#rotating-a-section
but I think I don't understand how to use it please help !!
Section section = new Telerik.Windows.Documents.Flow.Model.Section(document);
document.Sections.Add(section);
section.PageMargins = new Telerik.Windows.Documents.Primitives.Padding(40, 10, 40, 10);
section.PageSize = PaperTypeConverter.ToSize(PaperTypes.A4);//WindowsBase assembly should be referenced.
editor.InsertSection();
editor.InsertText(("Page 2 !!"));
and is it possible that we know what is the current page number before "insertText" ?