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

Control the pagebreak in Codebehind for a RadRichtextBox

1 Answer 110 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Manfred
Top achievements
Rank 2
Manfred asked on 18 Feb 2011, 08:23 AM
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
Manfred

1 Answer, 1 is accepted

Sort by
0
Vesko
Telerik team
answered on 21 Feb 2011, 12:59 PM
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,
Vesko
the Telerik team
Tags
RichTextBox
Asked by
Manfred
Top achievements
Rank 2
Answers by
Vesko
Telerik team
Share this question
or