如何在Posiflex线显示中打印文本文件 [英] How do I print a Text File in Posiflex Line Display

查看:92
本文介绍了如何在Posiflex线显示中打印文本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,



我们正在使用最新的Posiflex 5300系列POS机,它具有线路显示器

配置为COM4,设备名称配置为CUSTPOLE。

我需要一个可执行文件从文本文件CUSTP.TXT打印到此行显示。

文本文件将具有内容在线显示器上显示。



我将从SAP等其他应用程序填充文本文件。



如果有人可以提供帮助,请告诉我。



Bala

Dear all,

We are using a Latest Posiflex 5300 Series POS machines which has a Line Display
Configured to COM4 , device name configured as CUSTPOLE.
I need a Executable file to print on this Line display from a Text file "CUSTP.TXT".
The Text File will have the Contents to Display on the Line Display.

I will populate the Text file from another application Like SAP.

Please let me know if anybody can help on this.

Bala

推荐答案

您好。



查看Microsoft POS for .NET SDK

https://msdn.microsoft.com/en-US/library/bb429024(v=winembedded.4).aspx [ ^ ]



班级你需要使用的是LineDisplay类:

https://msdn.microsoft.com/en-us/library/dd125817(v=winembedded.10).aspx [ ^ ]



例如:



Hello.

Have a look at the Microsoft POS for .NET SDK
https://msdn.microsoft.com/en-US/library/bb429024(v=winembedded.4).aspx[^]

The class you need to use is the LineDisplay class:
https://msdn.microsoft.com/en-us/library/dd125817(v=winembedded.10).aspx[^]

For example:

var explorer = new PosExplorer(this);
DeviceCollection devColl = explorer.GetDevices(DeviceType.LineDisplay); // find all display units
lineDisplay = (LineDisplay)explorer.CreateInstance(devColl[0]); // select the first one
lineDisplay.Open();
lineDisplay.Claim(1000); //try to open it with a timeout of 1 second.
lineDisplay.DeviceEnabled = true; // set it to enable
lineDisplay.DisplayText("Hello :)", DisplayTextMode.Normal); // display the text.
// clean up
lineDisplay.Release();
lineDisplay.Close();







Valery。




Valery.

这篇关于如何在Posiflex线显示中打印文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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