PC Review


Reply
Thread Tools Rate Thread

I can't copy a picture to word!

 
 
Lloyd Dupont
Guest
Posts: n/a
 
      3rd Dec 2005
I have a copy code as below. Which works well inside my application.
But if I try to copy a picture into word, it always fail!
Any tips?

=====
public static void SetPasteboard(Object obj)
{
IDataObject ido = new DataObject();
ido.SetData(obj);

if (obj is Bitmap)
ido.SetData(DataFormats.Bitmap, obj);

Clipboard.SetDataObject(ido);
}

 
Reply With Quote
 
 
 
 
Lloyd Dupont
Guest
Posts: n/a
 
      3rd Dec 2005
never mind...
the problem was that I also copyed empty RTF to the data object...
"Lloyd Dupont" <net.galador@ld> wrote in message news:(E-Mail Removed)...
I have a copy code as below. Which works well inside my application.
But if I try to copy a picture into word, it always fail!
Any tips?

=====
public static void SetPasteboard(Object obj)
{
IDataObject ido = new DataObject();
ido.SetData(obj);

if (obj is Bitmap)
ido.SetData(DataFormats.Bitmap, obj);

Clipboard.SetDataObject(ido);
}

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy picture from word 2003 to word 2007 Daisy Microsoft Word Document Management 4 31st Mar 2010 01:40 AM
Copy a Picture off a website and put it in to word =?Utf-8?B?U3BhY2VBY2VAY2luY2kucnIuY29t?= Microsoft Powerpoint 1 22nd Oct 2006 03:01 AM
I can't copy a picture to word! Lloyd Dupont Microsoft Dot NET Framework Forms 1 3rd Dec 2005 06:41 AM
Copy picture from Word =?Utf-8?B?bGVmdG5vdHJhY2tz?= Microsoft Word Document Management 1 20th Jul 2005 06:22 PM
copy and paste picture from the Web to the Ms Word... =?Utf-8?B?S2hhbGlsUw==?= Microsoft Word Document Management 0 25th Feb 2005 06:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:10 AM.