【发布时间】:2013-12-04 16:27:23
【问题描述】:
我在我的 winforms 应用程序中使用 mshtml.InternetExplorer 对象来浏览 Web 应用程序。不知何故,我不能在我的解决方案中使用 webbrowser。现在我需要在这个 Web 应用程序中捕获一个 div 元素的屏幕截图。我看到许多使用 webbrowser 的 drawtobitmap 方法执行类似功能的解决方案,但没有一个使用 mshtml.InternetExplorer。 有没有办法实现这个功能?有什么方法可以将 InternetExplorer 对象类型转换为 webbrowser?
【问题讨论】:
-
不清楚,您是自动化进程外
InternetExplorer对象还是托管WebBrowserActiveX 控件的进程内实例? -
我正在自动化一个进程外 InternetExplorer 对象。我只是做 process.start(iexplore.exe) & 然后自动化那个 ie 实例
标签: c# winforms browser webbrowser-control mshtml