屏幕捕获C#中的网页错误 [英] Screen capturing a web page error in c#
本文介绍了屏幕捕获C#中的网页错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从本教程下载了有关如何在C#中截屏网页的源文件:
使用C#捕获整个Web页面 [
I downloaded the source file from this tutorial on how to screen capture a webpage in C#:
Image Capture Whole Web Page using C#[^]
Now, the programs runs fine, but when I screen capture a webpage the image doesn''t display. Instead, it just displays a black image?
推荐答案
本文来自2005年,Microsoft可能已更改了它依赖的内容.
您不能使用SendKeys将Alt + PrntScrn发送到浏览器窗口吗?
The article is from 2005, Microsoft have probably changed things it depends on.
Can you not use SendKeys to send an Alt+PrntScrn to the browser window?
下面的线程建议另存为MHT文件,然后将其渲染为图像:
http://social.msdn.microsoft.com/论坛/en-US/Vsexpressvb/thread/b4710708-8a9f-4139-9b24-fae8e5093327 [
The thread below suggests saving as an MHT file and then rendering that as an image :
http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/b4710708-8a9f-4139-9b24-fae8e5093327[^]
尝试
将网页捕获为图像 [
Try
Capture Web Page as Image[^]
这篇关于屏幕捕获C#中的网页错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文