ASPX页面以截图 [英] Taking screenshot of ASPX page

查看:146
本文介绍了ASPX页面以截图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种简单的方法(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应用程序页面,你在试图捕捉,然后用所描述的编程屏幕捕获方法<一href="http://stackoverflow.com/questions/1163761/c-capture-screenshot-of-active-window">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.

这篇关于ASPX页面以截图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆