POS Printer in .NET

T

Toni

How to use POS Printer in .NET. I am searching by google but every code
doesn't wok. I need some code (VB or C#) for printing on POS printer
(printer for bills, bus, train or boat tickets snd similar)?
Do you have some code (I work in Visual Studio 2005)?
 
G

Guest

Toni said:
How to use POS Printer in .NET. I am searching by google but every code
doesn't wok. I need some code (VB or C#) for printing on POS printer
(printer for bills, bus, train or boat tickets snd similar)?
Do you have some code (I work in Visual Studio 2005)?


Depends on how the printer is hooked up.

Parallel Port? Serial Port? Custom Library?
 
T

Toni

Depends on how the printer is hooked up.
Parallel Port? Serial Port? Custom Library?

Parallel Port (I also have driver). I need code for printing text, printing
barcode, partial cut and ful cut.
 
G

gregarican

How to use POS Printer in .NET. I am searching by google but every code
doesn't wok. I need some code (VB or C#) for printing on POS printer
(printer for bills, bus, train or boat tickets snd similar)?
Do you have some code (I work in Visual Studio 2005)?

I am in a similar situation at my workplace. For POS hardware we use
Dymo USB printers, which fortunately come with documented OLE API code
and the necessary drivers. What type of printer hardware do you have?
Check the manufacturer's website to see if any API code is available...
 
W

William Stacey [C# MVP]

Have you tried .Net POS 1.11 library?
http://www.microsoft.com/downloads/...72-06C1-4A4A-A128-83B8A651A25A&displaylang=en

--
William Stacey [C# MVP]
PCR concurrency library: www.codeplex.com/pcr
PSH Scripts Project www.codeplex.com/psobject


| How to use POS Printer in .NET. I am searching by google but every code
| doesn't wok. I need some code (VB or C#) for printing on POS printer
| (printer for bills, bus, train or boat tickets snd similar)?
| Do you have some code (I work in Visual Studio 2005)?
|
|
 
T

Toni

I am in a similar situation at my workplace. For POS hardware we use
Dymo USB printers, which fortunately come with documented OLE API code
and the necessary drivers. What type of printer hardware do you have?
Check the manufacturer's website to see if any API code is available...

I use STAR printer on LPT port. They have modules for vb6 on their site, but
not for .net.
 
D

Dennis Aries

If you cannot find that, send Escape-codes to the printer-driver using
the standard Windows API-system. We are using this system since VB5
and it still works like a charm.
 
J

Jan Obrestad

My suggestion is that you use OPOS to communicate with the printer. This
is a industry standard and makes it possible, at a later stage, to
change to make of printer without making any change to the code.

You can download the drivers from here.

http://www.star-micronics.co.jp/service/s_print/opos_win32_yyyymmdd.exe.htm

The driver installs a com object you can use. This can be used as easily
from C# as from VB 6.0

The com object uses some constants that are defined in
C:\Program Files\OPOS\Include\OposPtr.h

It should be an easy task to port these constants to c#.

You must use escape codes to format the printout. A good reference is
this:
http://www-900.ibm.com/cn/support/library/pos/download/ibmoposuserreference170.pdf

the escape codes are on pages 52-53.
 
T

The Frog

Do you know if the Microsoft .Net POS 1.11 library is able to be used
with Windows CE / Mobile 5.0 or XP Embedded?

Cheers

The Frog
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top