Split rtf text and keep formatting

2 posts, 0 answers
  1. Peter
    Peter avatar
    11 posts
    Member since:
    Feb 2014

    Posted 24 Jul 2014 Link to this post


    I need to split a single RadDocument across multiple pages of a report, thus multiple instances of a RadRichTextBox.  How do I paginate across pages and keep the formatting?  I have tried selecting the portion of the document that fits in one control and creating a new document from that selection, but I lose key elements of the formatting.  For instance, if I have a numbered list that crosses pages, the numbering starts over on the second page after I split it up.

    Maybe there is a sample app available that would demonstrate what I am trying to do?


  2. Petya
    Petya avatar
    973 posts

    Posted 29 Jul 2014 Link to this post

    Hello Peter,

    Splitting a document to show it in several RadRichTextBox instances is not a scenario supported out of the box and we have no similar example. While it is possible to create several RadDocuments from a single one, losing some of the formatting is expected. For instance, a list determines its number/bullet based on the previous paragraphs in the document. If you split a list in half it is only natural that its numbering would be restarted.

    Could you please share more details on your end scenario? For example, why do you want to split a document? Is showing several controls containing rich text necessary in your scenario and why? What type of documents are you using? Are you planning to export the document to any of the supported formats? Maybe we will be able to suggest an alternative for you that does not require the creation of several RadRichTextBox instances. 

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
  3. DevCraft R3 2016 release webinar banner
Back to Top