Web应用程序中的ClipBoard错误 [英] ClipBoard Error in Web Application

查看:67
本文介绍了Web应用程序中的ClipBoard错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Web应用程序中将图像复制到剪贴板中.为此,我使用此代码

I have a requirement to Copy Image into Clipboard in My web Application.For this i use this code

Dim img As System.Drawing.Image
img = System.Drawing.Image.FromFile(Server.MapPath(strTemp))
Thread.CurrentThread.SetApartmentState(ApartmentState.STA)
Clipboard.SetImage(img)


它在本地系统上可以正常工作.但是当我们在服务器上运行它时,会出现如下错误:
System.Runtime.InteropServices.ExternalException:请求的剪贴板操作未成功.

谁能帮我解决这个问题.
在此先感谢


It works fine in local system.But when we run it on server it gives error like this:
System.Runtime.InteropServices.ExternalException: Requested Clipboard operation did not succeed.

Can any one help me to resolve this problem.
Thanks in advance

推荐答案

^ ]:一定会有帮助您的东西.
Start[^] here: there is bound to be something to help you in that lot.


A Codeproject Article[^] that may help.

Always search first, a couple of keywords will usually be enough for enlightenment.


这篇关于Web应用程序中的ClipBoard错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆