473,606 Members | 2,756 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending Control characters to a POS printer

Hi,

I?m currently developing a POS application in VB.NET.
I want the user to be able to connect any kind of POS printer (available on the market).

I have tried printing the ordinary .NET way e.Graphics.Draw String(...) but it seems it cannot parse the special control characters that I want to use.

I have used Epsons OPOS Ocx (which works fine) but it?s not generic like I want it (too much hustle for the user to set up the device) I want it to be plug and print.

Has anyone accomplished this? If so could you please point me in the direction where I can find information about it?

Regards

--------------------------------
From: Frederik Wehlin

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>e1Zl6hs+Uk2 ci0Bvz4LnVA==</Id>
Nov 20 '05 #1
3 6337
* Frederik Wehlin via .NET 247 <an*******@dotn et247.com> scripsit:
I?m currently developing a POS application in VB.NET.
I want the user to be able to connect any kind of POS printer (available on the market).


I don't know what a POS printer is, but maybe this sample works for you:

HOW TO: Send Raw Data to a Printer by Using Visual Basic .NET
<URL:http://support.microso ft.com/?scid=kb;EN-US;322090>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
Herfrield

POS Printer = Point of Sale Printer, well here in the UK anyway. Something like a Cash register receipt printer

The link you have provided should point Frederik in the right direction, without actually trying it, it looks like it will do what he wants. Thanks for the link, I have saved it for my own information as the company I work for may do something with POS printers in the future

Chris
----- Herfried K. Wagner [MVP] wrote: ----

* Frederik Wehlin via .NET 247 <an*******@dotn et247.com> scripsit
I?m currently developing a POS application in VB.NET
I want the user to be able to connect any kind of POS printer (available on the market)


I don't know what a POS printer is, but maybe this sample works for you

HOW TO: Send Raw Data to a Printer by Using Visual Basic .NE
<URL:http://support.microsoft.com/?scid=kb;EN-US;322090

--
Herfried K. Wagner [MVP
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3
* "=?Utf-8?B?Q2hyaXMgUG9 kbW9yZQ==?=" <an*******@disc ussions.microso ft.com> scripsit:
POS Printer = Point of Sale Printer, well here in the UK anyway. Something like a Cash register receipt printer.


Thank you for the explanation.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4

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

Similar topics

0
1701
by: news.microsoft.com | last post by:
Hi Everyone, I am using the API of a particular printer driver, to pre-specify settings specific to that printer driver. After which the API has methods to create a printer driver context, which is to be sent to print command of the document I want to print. In this case, it is the html file which I open in the browser control which I want to print using these settings. How do I send this printer driver context generated by this printer...
3
29508
by: Vlki | last post by:
Hello, I can't find a way to send printer specific language codes to printer. Part of my code : String sString = "B50,0,0,3,1,2,50,B," + "12345678901234567890"; Font fFont = new Font("Arial", 16); SolidBrush bBrush = new SolidBrush(Color.Black); PointF pPoint = new PointF(150.0F, 150.0F); ev.Graphics.DrawString(sString, fFont, bBrush, pPoint);
3
6401
by: notregister | last post by:
Hi would i like to send string of PCL codes to a Printer which i have the IP address, how do i send it? i'm currently using TCPclient class, but it could not work, as the printer would just hang... pls help me...
4
4220
by: Schwarty | last post by:
I hope I posted this to the correct group. If not, please let me know and I will get it posted in the correct section. I have a web application developed in ASP.NET using C# for the code behind. I need to be able to print shipping labels from a web page within this application. The shipping label data is pulled from a 3rd party application and comes in binary format specific for certain brands of label printers. I have a class library...
6
2234
by: Barry Edmund Wright | last post by:
Hi, We are having a large cheque run printed by an outside printer. The printer asked us to give him the layout of the fields to print on a form and send it to him. As an example the form looks like this: xxxxxxxxxxxxxxxxxx dd mm yyyy xxxxxxxxxxxxxxxxxxxxxxx zzzzzzzzz.99
2
4441
by: hari | last post by:
Hi all, I need to automate printer command testing, prinetr supports parallel/ serial/USB.How can i send the commands from python to printer. I have got pyparallel, as am new to python, no idea how to work on it. Please give some tips,The comamnd to be sent to the printer is hex data "1B 40".please give a example,it will be grateful.
1
6559
by: deric | last post by:
Hi! I'm new to VB.net programming on printing a page to a thermal printer (Epson T88IV). I really had a hard time figuring out how to code the printing of a bitmap image and some text, while sending commands (through font control) to the printer. I tried sending the escape characters with Control font, but the Graphics.DrawString of PrintPageEventArgs do not allow it.. so I used the RawPrinterHelper class I found on Microsoft KB. It worked out...
0
2873
by: Charles Crawford | last post by:
Hi, This apparently is a common problem and I've yet to read a solution that actually works for my specific situation. I have a Zebra RW220 printer that I connect to via Bluetooth connection mapped to a serial port. The application I'm writing runs on a Windows Mobile 5 device, so there's no built in printer support and I have to use a serial port. When I try to write the zpl code to the serial port, the printer simply prints the code...
0
3757
by: =?Utf-8?B?Q2hhcmxpZQ==?= | last post by:
Hi, This apparently is a common problem and I've yet to read a solution that actually works for my specific situation. I have a Zebra RW220 printer that I connect to via Bluetooth connection mapped to a serial port. The application I'm writing runs on a Windows Mobile 5 device, so there's no built in printer support and I have to use a serial port.
1
8127
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
8320
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...
0
6803
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5994
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
5470
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();...
0
3952
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2458
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
1
1574
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1315
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.