ASP.NET和Windows窗体应用程序

编程入门 行业动态 更新时间:2024-10-03 19:19:10
本文介绍了ASP.NET和Windows窗体应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何在asp中使用Windows窗体printpreview对话框?告诉我我已经尝试使用printpreview控件[不是dilaog]作为asp中的控件文件,因为我们无法使用previewdialog或msgbox

解决方案

目前为止据我所知,不允许网站控制连接到客户端计算机的硬件。浏览器为我们这样做;大多数浏览器都有打印预览对话框。由于打印预览对话基于打印机的属性,因此没有直接的方法。 但总有一个解决方案,你可以使用javascript或activex。我认为以下链接很有用: javascript打印 javascript打印2 printtopreview

how to use Windows Forms printpreview dialog in asp? tell me idea i have tried to use printpreview control [not dilaog] as a control file in asp since we can't use previewdialog or msgbox

解决方案

As far as i know, web sites are not allowed to control hardware attached to client computers. Browsers do that for us; most browsers have print preview dialogues. Since print preview dialogues are based on properties of printers, there is no direct way of doing it. But there is always a solution, you can use javascript or activex. I think the following links would be useful: javascript printing javascript printing 2 printtopreview

更多推荐

ASP.NET和Windows窗体应用程序

本文发布于:2023-11-03 04:35:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1554247.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:窗体   应用程序   ASP   NET   Windows

发布评论

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

>www.elefans.com

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