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

Go to the next page.

2 Answers 86 Views
RichTextEditor
This is a migrated thread and some comments may be shown as answers.
Tomasz
Top achievements
Rank 1
Tomasz asked on 09 Aug 2017, 08:37 AM

Hello,

I have application - ss in the file - text editor;

Writes text on one page "1" and when it reaches the designated "red" then the text goes to the second texteditor "2".

How to do it?

Please, help me! Please

2 Answers, 1 is accepted

Sort by
0
Tomasz
Top achievements
Rank 1
answered on 09 Aug 2017, 09:07 AM

If you can not do that - question about richtextbox with windows forms.

I wanted to ask how can I restrict typing in richTextBox. I want to make a page like in Word that after some paragraph goes to the next page, but I do not know how to do it, because it depends on what font.I do not ask for the ready code, though how difficult it is to model, but hints on how.
I greet and count on understanding.

0
Hristo
Telerik team
answered on 09 Aug 2017, 09:51 AM
Hello Tomasz,

Thank you for writing.

You can make use of the positioning API and move the cursor to a different place inside your document. For the purpose, you can handle the PositionChanged event exposed by the RadDocument.CaretPosition object: 
this.radRichTextEditor1.Document.CaretPosition.PositionChanged += CaretPosition_PositionChanged;

You can also consider building your document with bookmarks, this way you could easily navigate to them: http://docs.telerik.com/devtools/winforms/richtexteditor/features/bookmarks.

Please also check the following threads discussing a similar scenario: 
I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
RichTextEditor
Asked by
Tomasz
Top achievements
Rank 1
Answers by
Tomasz
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or