ASPX页面以截图截图、页面、ASPX

2023-09-04 00:18:08 作者:狂γёㄡ風情\"

有没有一种简单的方法(preferably无需导入库)取一个ASP.NET网页,在C#(更好的是一个aspx控制)的截图,并保存为图片?提前谢谢了!样品code或链接到一个教程将大大AP preciated ...

is there an easy way (preferably without having to import libraries) to take a screenshot of an ASP.NET web page (better yet an aspx control) in c# and saving it as an image? Many thanks in advance! Sample code or a link to a tutorial would be greatly appreciated...

推荐答案

一个真正kludgie解决办法:写一个WinForms应用程序,包括浏览器控件。导航到Web应用程序页面,你在试图捕捉,然后用所描述的编程屏幕捕获方法here.

One really kludgie solution: Write a WinForms app and include a Browser control. Navigate to the web app page you're trying to capture, and then use the programmatic screen capture approach described here.