473,666 Members | 2,565 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7150
"Toni" <ne**@maila.hrw rote in news:f0******** **@magcargo.vod atel.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.hrw rote:
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.hrw rote in message
news:f0******** **@magcargo.vod atel.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\Incl ude\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
22297
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 the selected printer. I'm not concerned about the text format. What I tried is something like this CommonDialog1.ShowPrinter
2
2593
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 of classes that allow me to interact with network devices. In other words, if I have a path and filename inside of a string variable in python, how do I send the file to the printer?? Thanks in advance
7
6871
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 Steve
0
3649
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 problems have arisen. My investigations show that it is not related to the particular system I developed. but is affecting Access in general. So, has nothing to do with reports being set to print to a default printer (which they all are) or to a...
0
2579
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 the same reports to 3 different laserjets and to 3 different labelprinters. (They work with the db on 3 different units each with their own Laserjet and Labelprinter) For each unit there is a copy of all the reports. The client can make a unit...
1
12159
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 know how will this affect a report rendered by a crystal viewer. I have a web page with a crystal viewer rendering the report on the page. I build my application in one of my development machines and deploy it
2
5764
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 setting the printer's scale and the X,Y position of the output: Sub SetLargePrinterScale(obj As Object, VertPosition As Single) Dim Owid As Single Dim Ohgt As Single Dim Pwid As Single Dim Phgt As Single Dim Xmid As Single
8
2875
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 printer from the default printer for that report to a PDF995 printer (so that i can print it to a file for subsequent emailing) then back to the default Epsom 830 printer? Thanks for any help Phil
4
16798
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 Tip to these Topics. The Tip will actually consist of several Tips which I feel are very useful for all Users, from Newbies to Experts. In order to utilize the code contained within these Tips, you must have Access 2002 or later. How can I...
9
10280
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 find out how to do this. I have looked everywhere i know with no luck. Thank you in advance for your help.
0
8352
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8863
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8549
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8636
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6189
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5661
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2765
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2005
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.