Solved

How to display € symbol on OPOS compatible equipment

Posted on 2004-08-02
3
2,223 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 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

18 Experts available now in Live!

Get 1:1 Help Now