POS for .NET - Question about the line display

  • Thread starter Thread starter Shane8328
  • Start date Start date
S

Shane8328

Guest
Hi,

First of all, I'm sorry that I cannot find a proper category for my question as I noticed that POS for .NET forum had been retried.

I recently developed an app to connect with the line display device. I'm using the following code to test.

var posExplorer = new PosExplorer();
LineDisplay posLineDisplay = null;
try
{
var lineDisplayDevice = posExplorer.GetDevice("LineDisplay", "DM-D500");
posLineDisplay = (LineDisplay)posExplorer.CreateInstance(lineDisplayDevice);

posLineDisplay.Open();

posLineDisplay.Claim(1000);
posLineDisplay.DeviceEnabled = true;
posLineDisplay.DisplayTextAt(0, 0, "abcdefghABCDEFGH1234567890", DisplayTextMode.Normal);

posLineDisplay.Claim(1000);
posLineDisplay.DeviceEnabled = false;
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
finally
{
posLineDisplay?.Close();
}


The text is displayed, but there are also some extra characters G!0G"0 on the screen. (I'm not able to upload the picture)

abcdefghABCDEFGH1234567890G!0G"0

I have no clue how to remove these strange guys.

Any suggestion?

Thanks a lot.

Continue reading...
 
Back
Top