Drag and Drop Picture into Word from .NET

  • Thread starter Thread starter mcse3010
  • Start date Start date
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
 
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
 
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
 
Back
Top