屏幕短整页System.Windows.Forms不起作用

编程入门 行业动态 更新时间:2024-10-08 20:37:17
本文介绍了屏幕短整页System.Windows.Forms不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我添加了参考 System.Windows.Forms 来创建Screen Short of整个页面,但当我在服务器或IIS屏幕上部署它时,短时间没有生成

I have added Reference of System.Windows.Forms to create Screen Short of entire page but when i deploy it on server or IIS screen short is not getting generating

推荐答案

如果添加对 System.Windows的引用。表格,屏幕截图是在服务器端,因此,运行ASP.NET应用程序的计算机。但你想拍摄客户端的屏幕截图:浏览器中呈现的页面。 你能做的最好的事情是将您的页面转换为PDF而不是图像: www.c-sharpcorner/UploadFile/9f0ae2/convert-aspx-page-into-pdf-in-Asp-Net/ [ ^ ] www.aspsnippets/Articles/Export-ASPNet-Web-Page-with-images-to-PDF-using-ITextsharp.aspx [ ^ ] If you add a reference to System.Windows.Forms, the screen shot is taken at the server side, so, the computer that runs your ASP.NET application. But you want to take a screen shot of the client-side: the rendered page in the browser. The best thing you can do is to convert your page to a PDF instead of an image: www.c-sharpcorner/UploadFile/9f0ae2/convert-aspx-page-into-pdf-in-Asp-Net/[^] www.aspsnippets/Articles/Export-ASPNet-Web-Page-with-images-to-PDF-using-ITextsharp.aspx[^]

更多推荐

屏幕短整页System.Windows.Forms不起作用

本文发布于:2023-11-13 11:27:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1584233.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不起作用   屏幕   短整页   System   Windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!