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

Re: working with clipbord by Jonathan

Jonathan
Tue Sep 16 09:29:04 CDT 2003


"sudhir kamath" <iamsudhirkamath@hotmail.com> wrote in message
news:07cb01c37c0a$a428a470$a401280a@phx.gbl...
> 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