Drag and Drop Picture into Word from .NET

M

mcse3010

I have been unable thusfar to drag and drop an image into Word from a .NET app.

The code I am trying to use appears below:

this.DoDragDrop(pictureBox1.Image, DragDropEffects.All);

The pictureBox1.Image is a JPEG file loaded from the filesystem. Using the
above code, I can drag and drop into Excel and Powerpoint, but dropping onto
Word appears to do something but no picture appears.

Could someone tell me what I'm doing wrong -- or point me to the right
direction -- using Win32 API or OLE or whatever it is I need to do to get
this to work?

TIA
 
X

xcal

hi TIA
possibly you could only fill the clipboard with your image, then,
try to use another way to copy the clipboard content on Word
hope this helps, Carlos
 
X

xcal

hi TIA
possibly you could only fill the clipboard with your image, then,
try to use another way to copy the clipboard content on Word
hope this helps, Carlos
 

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