在asp.net中进行客户端打印 [英] clientside printing in asp.net

查看:59
本文介绍了在asp.net中进行客户端打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用System.Drawing.Printing对象将详细信息打印到asp.net网站上客户端计算机中的默认打印机

现在我正在使用以下代码获取打印机名称

how to print a details to default printer in the client machine in asp.net website using System.Drawing.Printing object

now im using the below code for geting the printer name

PrintDocument printdoc = new PrintDocument();
    PrinterSettings pr = new PrinterSettings();

printdoc.PrinterSettings.PrinterName = pr.PrinterName;




但是此代码给出了服务器的默认打印机名称

但是我要使用客户端系统的默认打印机




but this code gives the default printer name of the server

but i want the default printer of the client system

推荐答案

要提供打印选项,可以使用
As you want to give print option, you can use
windows.print()


的形式.

希望对您有帮助.
抱歉,如果我误解了您的要求.


of javascript.

hope this will help you.
sorry if i misunderstood your requirement.


请参阅

http://forums.asp.net/t/1291679.aspx [
refer

http://forums.asp.net/t/1291679.aspx[^]


这篇关于在asp.net中进行客户端打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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