C# POS fast receipt printing [closed]

▼魔方 西西 提交于 2019-12-13 08:40:26

问题


I'd like to print the receipt of my POS application (Winform C#) My first attempt is using crystal report, but it's no fast enough when there're many customers in line, even some of them will leave the line. So I have idea to print in DOS mode. I create a dummy file and send it to PRN. It's working well, fast enough but then I have a thought.. Is there any other better way to do? I mean it's not by creating a dummy file first, but print line by line from C# itself? of course it must be fast.

Thanks in advance..


回答1:


See my answer here: print on dot matrix printer in .net

No need to create an intermediary file and send it to PRN; just add a Generic / Text Only printer, and then print to that driver. To do that, open a file handle to "PRN" or "LPT1" in C#, then you can directly print to it based on the file handle you obtained from opening "PRN" or "LPT1"


UPDATE

Code here might help you: Printing to LPT1 in C#



来源:https://stackoverflow.com/questions/10425227/c-sharp-pos-fast-receipt-printing

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!