最初是想在自定义的Web页面中流览K2.NET的流程图,调研发现需要在Web页面上使用一个DLL来实现图形显示,参考K2.NET资料,流程实列数据已经正确获取到了,但是Web页面就是不能显示出图形来。查阅相关资料后才知道这个DLL是一个WindowControl而不是一个WebControl,于是找了些描述如何创建并在IE中使用WindowControl的资料,大致整理如下步骤:
1 创建Windows Forms控件,创建步骤没有特别限制,普通WindowControl可用的技巧、方法都能使用
2 创建一个包含对象标签的HTML文档,主要语法如下:
1
<object id="simpleControl1"
2
classid="http:SimpleControl.dll#Microsoft.Samples.WinForms.Cs.SimpleControl.SimpleControl"
3
height="300"
4
width="300">
5
<param name="Text" value="Simple Control">
6
</object>

2

3

4

5

6

3 创建虚拟目录,复制并设置权限,所谓设置权限多数资料描述是设置虚拟目录只能以脚本权限运行,否则WindowControl将不能激活
4 运行包含WindowControl的页面
参考了多篇文章我仍然不能在本机调试成功,自己重新创建最简单的WindowControl不行,下载别人的代码示例也不行。有谁做过这个Case的能否指导一二?