如何在POS打印上打印 - asp.net c#? [英] how do printing on a POS printing - asp.net c# ?

查看:67
本文介绍了如何在POS打印上打印 - asp.net c#?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的伙伴!!!!



我有一个由asp.net c#为市场计费软件完成的应用程序。我需要使用POS打印机打印,这在每个商店都很常见。

任何人都可以知道相同的代码。

有价值的建议会很明显。



谢谢..

Dear mates!!!!

I have an application done by asp.net c# for a market billing software. i need to printing using POS printer which is very common in every shops.
anybody can know the code for the same.
valuable suggestions suggestions will be appreciable.

Thank you..

推荐答案

使用 Crystal Report 将是一个不错的选择,但如果你是新手,那么你可以通过创建 aspx 页来打印账单。



创建一个完全格式化为POS账单的aspx页面。然后只需在页面顶部添加此javascript。



Using Crystal Report would be a good option, but if you are new to it, you can print your bill by creating aspx page.

Create a aspx page completely formatted as your POS bill. Then just add this javascript on top of your page.

<script type="text/javascript">
        document.body.onload = PrintME();

        function PrintME() {
            self.print();
        }
    </script>


取决于客户端上安装的打印机类型。

如果POS使用喷墨打印机,您可以使用任何报告工具,如水晶报告等。



如果他们使用较旧的点阵式打印机,则需要构建使用文本文档打印文档。
Depends on the kind of printer installed on the client.
If the POS uses an inkjet printer you can use any reporting tool like crystal reports etc.

If they use an older dot matrix style printer, you will need to build the print document using text documents.


这篇关于如何在POS打印上打印 - asp.net c#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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