working with clipbord

S

sudhir kamath

Hi group,

I am working with office 2000. I am able to copy the
content of word document to clipboard using WD.Range.copy
() .now I want the reverse operation .that is how to
retrieve the content from clipboard and set it into word
document.

2> how to retrieve the contents in clipboard as byte array
and set it to dotnet byte array.
Is this possible.

regards,
sudhir
 
J

Jonathan West

sudhir kamath said:
Hi group,

I am working with office 2000. I am able to copy the
content of word document to clipboard using WD.Range.copy
() .now I want the reverse operation .that is how to
retrieve the content from clipboard and set it into word
document.

Selection.Paste will insert the formatted text at the point where the cursor
is showing at present.
2> how to retrieve the contents in clipboard as byte array
and set it to dotnet byte array.
Is this possible.

The unformatted text of the clipboard contents can be retrieved into a
string using the technique described in the following article.

Manipulating the clipboard using VBA
http://www.mvps.org/word/FAQs/MacrosVBA/ManipulateClipboard.htm

If you want to manipulate other clipboard formats, then the following page
may be useful to you.

http://www.mvps.org/vb/index2.html?samples.htm

Scroll down until you come to the section called "ClipEx.zip"

--
Regards
Jonathan West - Word MVP
MultiLinker - Automated generation of hyperlinks in Word
Conversion to PDF & HTML
http://www.multilinker.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top