Solved

How to display € symbol on OPOS compatible equipment

Posted on 2004-08-02
3
2,190 Views
Last Modified: 2008-01-09
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?

0
Comment
Question by:auk_ie
  • 2
3 Comments
 
LVL 3

Expert Comment

by:jlsjls
ID: 11701051
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
0
 

Author Comment

by:auk_ie
ID: 11704752
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?
0
 
LVL 3

Accepted Solution

by:
jlsjls earned 500 total points
ID: 11705154
For the POSPrinter you should set characterset = 858 (see http://www.microsoft.com/globaldev/reference/oem/858.htm).
And send the EURO sign (0xD5) to it.

I can't find any usefull information regarding codepage 998. Maybe you should find the manual of the linedisplay which could tell you more about the €-sign and codepages.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now