This is a migrated thread and some comments may be shown as answers.

Split rtf text and keep formatting

1 Answer 146 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 24 Jul 2014, 02:44 PM
Hello,

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?

Thanks,

Peter

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 29 Jul 2014, 10:50 AM
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. 

Regards,
Petya
Telerik
 
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.
 
Tags
RichTextBox
Asked by
Peter
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or