locked
How to convert the Clipboard data into rtf format RRS feed

  • Question

  •  

    Hi,

     

    I my application I have use the RichTextBox control. when I paste some content into that control it must be converted into rtf format. So how can I convert the Clipboard data into rtf format. I need the code guidelines in C# .Net

     

    Regards,

    Vimal

    Wednesday, May 16, 2007 7:05 AM

Answers

  • That depends on what's on the Clipboard.  Is it already RTF?  If not, just append ClipBoard.GetText() to RTF.Text.
    Wednesday, May 16, 2007 2:58 PM

All replies

  • That depends on what's on the Clipboard.  Is it already RTF?  If not, just append ClipBoard.GetText() to RTF.Text.
    Wednesday, May 16, 2007 2:58 PM
  • I faced the situation when i paste some contenten from Microsoft Word editor the RichTextBox not expand with content size. I done the coding for expand and shrink according to the content for RichTextBox control. When I copy and paste the content other than RichTextBox editor it will works fine.

     

    With Regards,

    Vimal

    Thursday, May 17, 2007 4:59 PM