Andrew Lerion

Andrew Lerion

  • NA
  • 1
  • 1.1k

OneNote (.one) format to RichTextBox (RTF) C#

Sep 17 2015 5:59 AM

I need help with one problem. I have to take the text from OneNote file in Clipboard or with some other shortcut or with one mouse click and insert him to RichTextBox in Visual Studio.

Only problem is that if I copy the text to RichTexBox, there is a special frame left in RichTexBox Window, so i couldn't work with the text. This frame is a note from OneNote file, because if you want to contribute to OneNote file, you have to insert this note and there is no other possibility how to write a text, am I right?

This problem could be solved by copying to MS Word (the frame disappears) and after that by using of a new copy of the text (from MS Word) and pasting it to RichTextBox in VS. I need to do that somehow in one step.

Could you please give me some tips how to do that? I need to work parse the text (rich text) in C# and convert it.