J
John Smith
Hi folks,
I've got a C# Windows Form Application that I'm trying to allow Drag And
Drop into Office with. I can Drag And Drop text no problem. However, when I
Drag And Drop an Image into Word, the image doesn't get added to the
document...nothing happens. If I do Drag it into PowerPoint, it works fine
and the image is added.
I've read about some work arounds (as I'm not the only one to experience
this) that use the Clipboard, however that is not an option for us.
Does anyone know how to allow dragging and dropping of images into Word?
Again, it works fine in PowerPoint.
Here's the code I'm using:
Image img = Image.FromFile("C:\\MyImage.bmp");
lblDragDropTest.DoDragDrop(img, DragDropEffects.Copy);
(Using the Bitmap instead of the image object doesn't work either)
Thanks!
I've got a C# Windows Form Application that I'm trying to allow Drag And
Drop into Office with. I can Drag And Drop text no problem. However, when I
Drag And Drop an Image into Word, the image doesn't get added to the
document...nothing happens. If I do Drag it into PowerPoint, it works fine
and the image is added.
I've read about some work arounds (as I'm not the only one to experience
this) that use the Clipboard, however that is not an option for us.
Does anyone know how to allow dragging and dropping of images into Word?
Again, it works fine in PowerPoint.
Here's the code I'm using:
Image img = Image.FromFile("C:\\MyImage.bmp");
lblDragDropTest.DoDragDrop(img, DragDropEffects.Copy);
(Using the Bitmap instead of the image object doesn't work either)
Thanks!