Control the pagebreak in Codebehind for a RadRichtextBox

2 posts, 0 answers
  1. Manfred
    Manfred avatar
    54 posts
    Member since:
    Jan 2011

    Posted 18 Feb 2011 Link to this post

    Hi there,

    just another question:
    I created a template with word and now I want to fill it with data.
    To control the data I have to set Pagebreaks in my Document because it is possible that the user selects a bunch of documents that willbe stored in one RadRichTextBox to be exported as PDF or to be printed so each document has to be on its own page, some times one document contains two or three pages.

    So can you give me a hint to control that?

    Best Regards
  2. Vesko
    Vesko avatar
    45 posts

    Posted 21 Feb 2011 Link to this post

    Hi Manfred,

    Thanks for this question.
    To insert PageBreak into your document you could use the InsertPageBreak method, which is newly available in our Q1 beta.
    With older version - you could use radRichTextBox.Insert(FormattingSymbolLayoutBox.PAGE_BREAK); which should do the work for you.

    Kind regards,
    the Telerik team
Back to Top