简体   繁体   English

使用C#为POSTEK G-2108打印机创建POS软件

[英]Creating POS software with C# for POSTEK G-2108 printer

My client want my program (a database reader program) to print all the data (in the program) to be a label in a paper roll. 我的客户希望我的程序(数据库读取器程序)将所有数据(在程序中)打印为纸卷中的标签。

They want the program can print with their printer (a barcode printer POSTEK g-2108) I have finished designing the program but when it comes to "print" it confuse me I've never designed a POS software and create a specialy "layout" printing before 他们希望程序可以使用打印机(条形码打印机POSTEK g-2108)进行打印。我已经完成了程序的设计,但是当涉及到“打印”时,它使我感到困惑,我从未设计过POS软件并创建特殊的“版式”印刷前

What the first thing I should do? 我应该做的第一件事是什么? I am using Visual Studio 2010 with .NET v4 Framework 我正在将Visual Studio 2010与.NET v4框架一起使用

There is no definitive answer to your question. 您的问题没有确定的答案。 You need to interface with the POS device. 您需要与POS设备对接。 You usually do this by using their API (.dll). 通常,您可以使用其API(.dll)来执行此操作。 That API then interfaces with the devices driver and does the things you tell it to do. 然后,该API与设备驱动程序连接并执行您要执行的操作。 If their .dll is written in C/C++ You can use DllImport so you can call the functions it exposes from C#. 如果他们的.dll是用C / C ++编写的,则可以使用DllImport以便可以调用它从C#中公开的函数。

Can't really tell you anything else, learn the API the manufacturer provides and then use it. 真的无法告诉您其他信息,请学习制造商提供的API,然后再使用它。

Good luck 祝好运

I've done this in the past by using the Microsoft POS for .net layer 我过去通过使用Microsoft POS for .net层来完成此操作

http://www.microsoft.com/en-gb/download/details.aspx?id=5355 http://www.microsoft.com/en-gb/download/details.aspx?id=5355

As long as your printer has a compatible driver, it's a much easier way of interfacing. 只要您的打印机具有兼容的驱动程序,它就是一种更简单的接口方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM