asp.net客户端基于dos的打印 [英] asp.net client side dos based printing

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

问题描述

我想打印一张帐单.我的帐单是从数据库中生成的,并且正在将其写入文本文件.现在我正在执行一个批处理文件,以便打印文本文件,但是我的问题是当我打印帐单时从n台机器上总是打印在服务器端,这是不应该发生的.当我打印账单时,应该在客户端打印. help Urgent

如果有人知道发送源代码?

I want to print a Bill.My Bill is generated from the database and I am writing it to text file.Now i am executing a batch file so that the text file gets printed but my problem is when i am printing the bill from n number of machines it always get printed on server side which should not happen.when i print the bill it should be printed on client side pls help Urgent

If any one knows pls send the source code?

推荐答案

我假设您正在此处使用网站,建议您在浏览器中显示帐单,以便用户可以在其旁边打印.
I''m assuming you''re working with a website here, I suggest you display the bill in the browser so the user can print it on his side.


您遇到了问题.您不能命令客户端从服务器在其打印机上打印某些内容. ASP.NET代码始终在服务器上运行,从代码启动的任何应用程序或批处理文件也一样.

这必须在客户端JavaScript中完成.不,您也不能在客户端上执行批处理文件来执行此操作.不要问我例子,我没有.
You have a problem. You cannot command the clients to print something on their printer from the server. ASP.NET code always runs on the server and so does any app or batch file that you launch from your code.

This has to be done in client-side JavaScript. And no, you cannot execute a batch file on the client to do it either. Don''t ask me for examples, I don''t have any.


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

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