`
happmaoo
  • 浏览: 4350154 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

在IE页面中使用MSChart控件(版本6.0.81.77)

阅读更多

版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处http://xinyistudio.vicp.net/和作者信息及本声明

MSChart控件是微软很早就推出的基于图形显示数据的ActiveX控件,我们知道在Web网页开发中MSChart控件是作为服务器端开发人员使用的,而客户端要使用该控件必须安装Visual Studio

有没有办法不安装Visual Studio使用MSChart控件呢?答案是:有。

在网上我收集了两种方法:

第一种方法:

该方法比较繁琐,也不容易成功。

对于IE页面,MSChart控件放在服务器上,用户浏览时,IE会下载MSChart.OCXLPKLPK是一个授权文件,客户端下载该文件,并且LPK中的运行License时正确的,才能正确使用MSChart控件,则用户可以浏览带有MSCHART的页面。生成LPK的工具和方法可以参考微软的Knowledge Base的文章:“Q159923 OWTO: Use Licensed ActiveX Controls in Internet Explorer”

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

第二种方法:

这种方法最容易,在很多新装了操作系统的机器上试过均能成功。

打开注册表,在HKEY_CLASSES_ROOT\ Licenses下新建一个键名12B<?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><chmetcnv w:st="on" tcsc="0" numbertype="1" negative="False" hasspace="False" sourcevalue="142" unitname="a">142A</chmetcnv>4-BD51-11d1<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="8" unitname="C">-8C</chmetcnv>08<chmetcnv w:st="on" tcsc="0" numbertype="1" negative="True" hasspace="False" sourcevalue="0" unitname="F">-0000F</chmetcnv>8754DA1,并设置其默认键值为aadhgafabafajhchnbchehfambfbbachmfmb

注:MSChart控件在使用中必须与Comcat.dll链接使用。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics