Solved

How to display € symbol on OPOS compatible equipment

Posted on 2004-08-02
3
2,398 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

688 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