ASP.NET和Windows窗体应用程序 [英] ASP.NET and Windows Forms Application

查看:66
本文介绍了ASP.NET和Windows窗体应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

解决方案

目前为止据我所知,不允许网站控制连接到客户端计算机的硬件。浏览器为我们这样做;大多数浏览器都有打印预览对话框。由于打印预览对话基于打印机的属性,因此没有直接的方法。

但总有一个解决方案,你可以使用javascript或activex。我认为以下链接很有用:

javascript打印

javascript打印2

printtopreview

how to use Windows Forms printpreview dialog in asp.net? tell me idea i have tried to use printpreview control [not dilaog] as a control file in asp.net 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窗体应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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