473,396 Members | 1,970 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

POS Printer in .NET

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)?
Apr 23 '07 #1
8 7119
"Toni" <ne**@maila.hrwrote in news:f0**********@magcargo.vodatel.hr:
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?

Apr 23 '07 #2
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.
Apr 23 '07 #3
On Apr 23, 5:17 am, "Toni" <n...@maila.hrwrote:
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...

Apr 23 '07 #4
Have you tried .Net POS 1.11 library?
http://www.microsoft.com/downloads/d...displaylang=en

--
William Stacey [C# MVP]
PCR concurrency library: www.codeplex.com/pcr
PSH Scripts Project www.codeplex.com/psobject
"Toni" <ne**@maila.hrwrote in message
news:f0**********@magcargo.vodatel.hr...
| 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)?
|
|
Apr 24 '07 #5
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.
Apr 24 '07 #6
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.

Apr 24 '07 #7
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:
>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.

Apr 25 '07 #8
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

Apr 26 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Patrick Herb | last post by:
Hello, I'm trying to print the content of a RichTextBox from my VB 6 app. What I want is that the CommonDialog shows up, the user selects a printer and the content of the RichTextBox prints to...
2
by: Jody Burgess | last post by:
Hi; I am writing my first python program and would like to know how to change stdout to refer to my default printer or any other printer on my network. The other question is, Is there an API set...
7
by: Steve M | last post by:
Hello, I'm having problems sending information from a python script to a printer. I was wondering if someone might send me in the right direction. I wasn't able to find much by Google TIA...
0
by: James Griffiths | last post by:
Here is a report I've written about a printing problem that is being experienced by a particular company for whom I had developed a A97 system. After upgrading to Win XP and AXP, some printing...
0
by: Esmee | last post by:
Hi there, I have created an Access 2002 db which contains several reports. Some reports need to be printed on a Laserjet and others on a Labelprinter. One of my clients wants to be able to print...
1
by: Karthic | last post by:
When i right click on the .rpt file in the VS 2003, i see a property printer setting. It says "No printer" on the top and there is option to select printer and paper settings etc.. I want to...
2
by: cjreynolds | last post by:
Please excuse my cluelessness on the subject - this is the first time I've worked with printing in VB (and it may be the last) and the more I work with it, the more confused I become... First, I'm...
8
by: Phil Stanton | last post by:
Using Access 2000 (Yes I know there is no Printer specified) and an MDE File (Yes I know I can't open a report in design view). Is there any way using VBA of temporarily changing the report's...
4
ADezii
by: ADezii | last post by:
Recently, there seems to be several questions specifically related to Printers and changing Printing characteristics for Forms and Reports. For this reason alone, I decided to dedicate this week's...
9
by: id10t error | last post by:
Hello, I am going to be using a Symbol WT4090 to scan items. I need to printer a tag from the Zebra ql320 plus. I am trying to do this is Visual basic 2005. Does anyone know and good site to...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.