How Could I Copy the Content of RichEdit Consisting of Text and Pictures to MS Word?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: How Could I Copy the Content of RichEdit Consisting of Text and Pictures to MS Word?

  1. #1
    Join Date
    Feb 2009
    Posts
    6

    Question How Could I Copy the Content of RichEdit Consisting of Text and Pictures to MS Word?

    Hi, everyone
    Now i am stuck in copying the content of richedit to MS Word.
    In my application, there is a window-less richedit control with the ITextService. In the richedit, i can input text and pictures.
    When Ctrl+C are pressed down, the content of richedit is copied to clipboard.
    I want to paste the content in MS Word.

    But the problem is only the text can be pasted in MS Word, the pictures can't.

    How could i solve this problem?
    Please help me. Any helpful suggestions is appreciated.

  2. #2
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: How Could I Copy the Content of RichEdit Consisting of Text and Pictures to MS Wo

    If you want to send data to a Word document/create a new Word document from your application, you should look into Automation.
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  3. #3
    Join Date
    Feb 2009
    Posts
    6

    Re: How Could I Copy the Content of RichEdit Consisting of Text and Pictures to MS Wo

    Thanks

    To be concrete, I have a question, which clipboard format is applicable when copy the content?

  4. #4
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: How Could I Copy the Content of RichEdit Consisting of Text and Pictures to MS Wo

    There is no format for RTF. I think you have to register one, but then Word would not know how to handle it, I guess.
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  5. #5
    Join Date
    Feb 2009
    Posts
    6

    Re: How Could I Copy the Content of RichEdit Consisting of Text and Pictures to MS Wo

    thanks. this problem is resolved

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center