用vb编程, 怎样将图片和文字同时复制到剪贴板??单独操作我知道。 15
Clipboard.SetDataLoadPicture("d:\1.gif")...比如这句,可以将图片复制到剪贴版Clipboard.Settext"aaaaaa"....
Clipboard.SetData LoadPicture("d:\1.gif") ... 比如这句,可以将图片复制到剪贴版
Clipboard.Settext "aaaaaa" ... 比如这句,可以将文字复制到剪贴版可是怎样才能同时将文字和图片一起复制到剪贴板, 代码该怎么写?? 或者是用到什么api??请高手指点 展开
Clipboard.Settext "aaaaaa" ... 比如这句,可以将文字复制到剪贴版可是怎样才能同时将文字和图片一起复制到剪贴板, 代码该怎么写?? 或者是用到什么api??请高手指点 展开
2个回答
展开全部
以下是国外网友的提问,你可以参考下。
I'm trying to copy both an image from a file and text from a file to the clipboard. My intention is to then open a word document or an outlook email and paste both the text and the image in one standard paste command (CTRL-V for example). I can do both separately easily enough, but doing them both in one operation doesn't seem to work.
This is how I've got the two working as separate operations (only relevant code lines of course, with try/catch stripped out etc.):
网址如下:http://stackoverflow.com/questions/285042/how-do-i-copy-an-image-and-text-to-the-clipboard-as-one-object
I'm trying to copy both an image from a file and text from a file to the clipboard. My intention is to then open a word document or an outlook email and paste both the text and the image in one standard paste command (CTRL-V for example). I can do both separately easily enough, but doing them both in one operation doesn't seem to work.
This is how I've got the two working as separate operations (only relevant code lines of course, with try/catch stripped out etc.):
网址如下:http://stackoverflow.com/questions/285042/how-do-i-copy-an-image-and-text-to-the-clipboard-as-one-object
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询