RichTextEditor Document

1 Answer 53 Views
RichTextEditor
Mark
Top achievements
Rank 2
Bronze
Bronze
Veteran
Mark asked on 24 Oct 2023, 08:05 PM

we are using the RichTextEditor to display a DOCX file. HOwever, I can not for the life of me figure out to remove/close the document once it has been assigned to the Document property on the RichTextEditor control. I know this is probably simple, but I am just not seeing anything like a CLOSE(), EXIT(), CLEAR() and Setting Document = null crashes.  

 

TIA

Mark

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 25 Oct 2023, 10:56 AM

Hello, Mark,

In order to clear the document that is already assigned on the RadRichTextEditor you can use the following code snippet:

private void radButton1_Click(object sender, EventArgs e)
{
    this.radRichTextEditor1.Document = new RadDocument();
}

I hope this helps. If you have any other questions, do not hesitate to contact us. 

Regards,
Nadya
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Mark
Top achievements
Rank 2
Bronze
Bronze
Veteran
commented on 25 Oct 2023, 11:17 AM

Well, here we go, I should have figured that one out...lol   

 

Thanks

Tags
RichTextEditor
Asked by
Mark
Top achievements
Rank 2
Bronze
Bronze
Veteran
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or