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

Problem copy content in RichTextBox for WPF

1 Answer 125 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Ishaq
Top achievements
Rank 1
Ishaq asked on 23 Oct 2012, 06:10 AM
Hi
I facing a problem of cope content Rich Text Box to MS Word. The problem are when i create a multilevel list in rich text box then copy this list and past this list in ms word the last element of the list lose style of the list see the attachment.
please help me any one

1 Answer, 1 is accepted

Sort by
0
Vasil
Telerik team
answered on 25 Oct 2012, 12:59 PM
Hi Ishaq,

The cause of this behavior is that the paragraph properties for the list styles are kept in the paragraph-end symbol. Unfortunately, in the current implementation no font settings other than the default ones for the document can be set on the last paragraph in the document of RadRichTextBox, and the last paragraph end cannot be selected.

To achieve your goal, you could just add one more paragraph at the document end and then copy the list as the attached image shows.

I hope this information helps. 

Greetings,
Vasil
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Dat
Top achievements
Rank 1
commented on 13 Oct 2021, 01:55 AM

Hello Vasil, add new paragraph to the document end may work when I copy all the bullets list , I wonder How can I do if I just copy a few line in paragraph list
Tanya
Telerik team
commented on 15 Oct 2021, 11:30 AM

Hello Dat,

Copying just a part of a list should be working as expected. Please, note that the numbering properties are stored in the last paragraph marker. Thus, if you would like to preserve them, you should make sure that this symbol is copied with the other content by selecting the paragraph till its end.

Tags
RichTextBox
Asked by
Ishaq
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Share this question
or