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

Page break in my Raddocument

1 Answer 30 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Reinier
Top achievements
Rank 1
Reinier asked on 28 Jul 2014, 03:54 PM
Hi I need to put a page break in my only raddocument section when within my logic code exist one condition I want that the following data that I have to show in my richtexbox begin in other page. This data is the rows of one radgrid and for example when my one of my group change i want to begin the other group in other page.
Thanks

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 31 Jul 2014, 10:44 AM
Hello Reinier,

You can add a page break in RadRichTextBox with the InsertPageBreak() method. The break is inserted at the caret position.
this.radRichTextBox.InsertPageBreak();

Please note that page breaks are not supported in the context of tables, i.e. if the caret is in a table cell a page break would not be added.

I hope this is useful.

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
Reinier
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or