?
Solved

How to display € symbol on OPOS compatible equipment

Posted on 2004-08-02
3
Medium Priority
?
2,476 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 1500 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 is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

777 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