shijuanwong 发表于 2013-3-19 14:11:00

UseControl,作为 ActiveX 控件添加到 BS 应用程序中,不显示

UseControl,作为 ActiveX 控件添加到 BS 应用程序中,不显示

win7系统,vs2012

参考的精华帖子:http://gcdn.grapecity.com/showtopic-5085.html
大体思路为: TX Text Control for Windows Forms 版本控件包装而成的 UseControl,作为 ActiveX 控件添加到 BS 应用程序中。
具体代码可以参见附件,如果你的机器上安装了 TX Text Control 也可以查看随机安装 Demo,路径为:Documents\TX Text Control 17.0.NET for Windows Forms\Samples\ASP.NET\CSharp\Browser\Basics
下面分步讲解怎样正确运行该程序:
1.    运行程序,打开 Step1 页面。我们会发现ActiveX 控件并没有加载:如图所示:

http://gcdn.grapecity.com/attachment.aspx?attachmentid=3162


在VS2012的命令行中运行:caspol -polchgprompt off -q -user -addgroup 1. -url http://www.yourserver.com/* FullTrust -n "TX Text Control .NET Server" -description "Security settings for TX Text Control .NET Server"

报错,这个是我机器的问题么?怎么解决这个问题http://gcdn.grapecity.com/attachment.aspx?attachmentid=4944

iceman 发表于 2013-3-19 14:42:00

回复 1楼shijuanwong的帖子

你好, url 地址不对,请把把图片中 (包括,例如:http://localhost:59903/) 替换为程序运行后的地址。

iceman 发表于 2013-3-19 15:22:00

回复 1楼shijuanwong的帖子

或者你可以直接下载该程序中 Step5 页面中的 js 文件,运行注册。

iceman 发表于 2013-3-19 15:41:00

回复 2楼iceman的帖子

如图所示:

shijuanwong 发表于 2013-3-20 10:15:00

回复 4楼iceman的帖子

刚才运行了 这个js,执行异常,“WScript.Shell” ,我没有安装vb6 是否需要安装一个?或者还需要安装什么软件,本地安装了VS2010 VS2012

iceman 发表于 2013-3-20 10:22:00

回复 5楼shijuanwong的帖子

请问你的 操作系统 及 Framework 版本是?

shijuanwong 发表于 2013-3-20 10:27:00

回复 6楼iceman的帖子

WIN7Framework4.5

shijuanwong 发表于 2013-3-20 10:29:00

回复 6楼iceman的帖子

sample 的是 Framework3.5, 高级版本不兼容?

iceman 发表于 2013-3-20 14:32:00

回复 8楼shijuanwong的帖子

shijuanwong 你好,
该问题我需要搭建环境进行测试,有结果我会更新帖子状态。

shijuanwong 发表于 2013-3-20 14:50:00

回复 9楼iceman的帖子

版主,你好
辛苦了,持续关注!
页: [1] 2 3 4
查看完整版本: UseControl,作为 ActiveX 控件添加到 BS 应用程序中,不显示