打开打印对话框 [英] open print dialog box
本文介绍了打开打印对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨朋友
如何在asp.net上按钮点击事件打开打印对话框
谢谢
hi friends
how to open print dialog box on button click event in asp.net
thanks
推荐答案
查看以下主题:
如何在ASP.NET中打印 [ ^ ]
Check out following thread:
How to Print in ASP.NET[^]
>
下面是示例代码
Below is sample code
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="Print" OnClientClick="window.print()" />
</div>
</form>
</body>
</html>
这篇关于打开打印对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文