如何直接从打印机机使用ASP.NET MVC打印发票 [英] How to print out invoice directly from printer machine using ASP.NET MVC

查看:2187
本文介绍了如何直接从打印机机使用ASP.NET MVC打印发票的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要开始一个小项目的POS机。这不是网上申请。将LAN网络上运行。我决定,因为我的客户希望更好的用户界面使用ASP.NET MVC在C#中的应用程序,而不是Windows Forms和他想要的。但我的问题是,我要在我的应用程序直接从打印机上打印出发票提供的功能。在Windows窗体,即可以轻松完成(但我没有经历过)。所以,我必须尽快开始我的项目。我发现很多的文章在网上,但他们只是解释如何渲染导出为PDF文件。他们不显示打印步骤。所以,请能与ASP.NET,打印发票怎么办?如果没有,我必须去与另一个(Windows窗体)。请帮我。

I am about to start a small POS project. That is not online application. That will be running on LAN network. I decided to use ASP.NET MVC in C# for that application instead of windows forms because my client wants better UI and he wants it. But my problem is I have to provide a feature in my application that print out the invoice directly from printer machine. In windows forms, that can be done easily(but I am not experienced). So I have to start my project soon. I found a lot of articles online , but they are just explaining how to render of export as pdf file . They do not show the printing step. So please that can be done with ASP.NET, printing invoice ?If not, I have to go with another one (windows forms). Please help me.

推荐答案

在办理POS机,你需要更具体的你要使用的打印机。我有机会在过去一个POS项目并挣扎了很多打印机的热敏打印机具有不同的分辨率的点阵。

While dealing with POS, you need to be more specific to the printer you are going to use. I got a chance to work on a POS project in past and struggled a lot with printers as thermal printer has different resolution than dot matrix.

当你正在创建一个web应用程序,你唯一的选择就是在客户端使用Javascript打从浏览器控件打印。您可能会发现短信打印机方便,你可以发短信到打印机,并把它打印出来。它会给你更多的控制和打印机可以在任何地方远程部署。

As you are creating a web application, your only option is to play with Javascript at client side to print from browser controls. You may find an SMS printer handy where you can send an SMS to the printer and get it printed. It will give you more control and the printer can be placed anywhere remotely.

这篇关于如何直接从打印机机使用ASP.NET MVC打印发票的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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