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/serv...yymmdd.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/li...ference170.pdf
the escape codes are on pages 52-53.
Toni wrote:
Quote:
Quote:
>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.
>
>