Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900