Link to home
Start Free TrialLog in
Avatar of auk_ie
auk_ie

asked on

How to display € symbol on OPOS compatible equipment

Hello

I am trying to output the Euro Symbol (€) on my opos equipment (Epson TM-88II and Dynapos Line Display).

I am using the common activeX controls for the hardware
I have tried

CSharp Code

//For the Line Display
char szEuro = (char)8364;
axOPOSLineDisplay1.DisplayText(szEuro.ToString, (int)DISP_DT_NORMAL);

or

axOPOSLineDisplay1.DisplayText("€", (int)DISP_DT_NORMAL);
//But neither work

and for the printer
string szESC = "\x1b";
float fPrice = 20.0f;
axOPOSPOSPrinter1.PrintNormal( (int)PTR_S_RECEIPT, szESC + "|N" + fPrice.ToString("C") + "\n");

I know this hardware is capable of printing the euro symbol, as I have seen it done from other software. But how?

Avatar of jlsjls
jlsjls

For the POSPrinter : you should query the property 'CharacterSetList' this will return a string telling the different code pages supported by the POSPrinter. In order to print the Euro sign, I think you should set the '1252' Codepage on the Epson POSPrinter object by the property 'CharacterSet'. Normally, now you can print the Euro sign.
For the LineDisplay : same story.

jlsjls
Avatar of auk_ie

ASKER

I queried the CharacterSetList property which tells me

Pos Printer supports following character sets: 255,437,850,858,860,863,865,998
Line Display supports following character sets: 998

But I still don't know how to print the euro symbol.

When I power on the Line Display it scrolls through all the symbols it supports. One of them happens to be the Euro symbol. Howerer it doesn't display anything when I try

axOPOSLineDisplay1.DisplayText("€", (int)DISP_DT_NORMAL);

I wonder if I need to send it some specific code to print the euro?
ASKER CERTIFIED SOLUTION
Avatar of jlsjls
jlsjls

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial