本文介绍了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窗体应用程序
发布评论