如何在asp.net中打开打印对话框控件 [英] how to open print dialog control in asp.net

查看:90
本文介绍了如何在asp.net中打开打印对话框控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

在这里我想在单击aspxpage中的按钮事件时打开Print Dailog Control.但是我试过了,但是它在打开的文件dailog中出现了.但是它应该在print dailog中出现.有什么可以建议我的吗.


问候,

Anilkumar.D

Dear Friends,

Here i want to open Print Dailog Control while clicking a button event in aspxpage.But i have tried but its coming in open file dailog.But it should come in print dailog.Can any suggest me regarding this.


Regards,

Anilkumar.D

推荐答案

如果您要打印当前页面,请使用javascript
If you are trying to print your current page then use javascript
window.print()


这篇关于如何在asp.net中打开打印对话框控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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