.NET中的点metrix打印 [英] dot metrix print in asp .net

查看:70
本文介绍了.NET中的点metrix打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hai ...
在我的项目中,我想在预打印纸上打印一些数据.我正在使用asp .net应用程序.我想通过dot metrix打印机打印该数据.纸张尺寸为12 * 14英寸,因此它在asp中的可能性如何.我想在客户端PC默认打印机中打印内容.不希望在服务器端打印机上打印.想在将数据传递给服务器的客户端上进行打印.目前,我是通过我的应用程序将数据写入服务器端的文本文件中.现在我想在客户端PC中打印该文本文件.怎么可能... ???

hai...
in my project in want to print some datas in a preprinted paper.i am using an asp .net application.i want to print that data through dot metrix printer.the paper size is 12*14 inch so how it is possibile in asp.i want to print the contents in client pcs default printer.not at server side printer.want to get print at client who passed the data to server. presently i written the datas in a text file at server side through my application.now i want to print that text file in my client pc.how it is possible...???

推荐答案

您不能从服务器端打印到客户端打印机-必须在客户端PC上运行软件才能访问打印机.这意味着使用Javascript或生成ActiveX控件并让用户安装它.出于安全原因,服务器代码无法访问客户端硬件.
You can''t print to the clients printer from the server side - software must run on the client PC in order to access the printer. That means using Javascript, or producing an ActiveX control and getting the user to install it. Server code has no access to client hardware for security reasons.


这篇关于.NET中的点metrix打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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