As part of a project I need to convert a numer to a barcode, then send a list of those numbers (or barcodes depending when the conversion should be done) to a printer to be printed on small sticker labels.
So far I have the list I need, but 2 things I have never done before and would like poiners are:
How do you convert to a barcode, is there a plug-in, or can this be done within ASP.NET / C# without any 3rd party dll?
Once I have the make / model of the printer and the dimensions of the label, should I be looking for a plug-in for this, or try to create a template.
Thanks in advance
Related
For the first time I've been given this Thermal printer (M325A) to use, at this stage I have ZERO idea of how to code my desktop application to print "ANYTHING". But my present requirement will be to print just 4 lines of information:-
Pre-mentioned Static Banner (Big text),
User supplied numeric value (Non-Decimals),
Serial Number (Progressive),
Current Date & Time.
Kindly help me start.
While there are printing libraries out there, you can as well directly connect to the printer, over serial, USB, or, ethernet, and send it the commands to print. ESC/POS capable printers interpret escape sequences, which are very well documented. You must, however, get to know how you can send binary data (i.e. 8-bit bytes) directly to the printer.
I am creating a web application (ASP.NET C#) where I need the encoded barcode text.
Example: EAN13 numbers: 460650003296. The output encoded barcode is then: Y(6A65AA*KNMTQT(
And that is the value I will need to have.
I have tried to use BarCodeLib and that it´s working great to generate barcodes images but I can´t find any way to get the encoded text, I have also tried KA Barcode but with the same result.
Does anyone have any experience in this libaries and if it´s possible to get the encoded text from them, or some other suggestion how I can get the encoded value?
I don't have any experience with this library that you are using. However, my company created a web application that use different commercial library for reading and writing 1-D barcodes (including the EAN13).
We started our web application using the following 2 tutorials:
Reading Barcodes
Writing Barcodes
You can get more details from their support team using this email:
support#leadtools.com
I need to print a few thousand stickers with a few text fields (name, position, etc) as well as a barcode image.
Each staff member gets two unique stickers, and the sticker paper has 4 per sheet so that's 2 staff per sheet.
I already have all the code to generate the barcode as an Image, and the staff details are stored in a List of object.
If possible, I'd like to avoid using MSWord directly since my development environment is quite different from the target environment and I've had issues in the past from the disparity. (Win7-64, MSOffice2010 vs. WinXP-32, MSOffice2003).
What's the best way to accomplish this?
If I save the document as an XML format and replace the mail merge fields with unique tokens which I can replace with my actual values (and I can even replace the binary image data with base-64 encoded image bytes) then that works but it's clunky. For starters, I'd have to save the XML file and then somehow print it transparent to the user (don't want Word showing up). Also, the XML template is 1 page, but I might have several dozen to print. I can send each page to the printer individually but that's not exactly ideal.
Any other suggestions?
I would use DevXpress XtraReports as I have used it in the past in similar scenarios with great results. If you prefer other engines like Crystal or Telerik is the same, as easy as dragging some fields in the page details section and assign your object list as datasource. DevXpress has also a RichTextBox with builtin mailmerge feature. at last if you decide for word do not forget that you can automate and use it while keeping it invisible so users wont see it.
I am working on reading a barcode containing two barcodes from a scanner that provides the UPC barcode and a quantity purchased in a single barcode. The barcode scanner is a USB emulating a keyboard (typical out of the box configuration). I cannot use pre and/or post characters to differentiate the barcodes. The scanner provides a return key after each of the two codes. When I scan to Notepad, I get the UPC code, a return character, the quantity and another return character.
I am coding in C# using Visual Studio 2010 Pro. I have tried using a textbox that accepts returns and setting it to multiline but I only get the UPC code. I have found no way thus far to capture the quantity amount as well. HELP!!!
Is your goal to get the codes into a text box, or is your goal to capture the codes and use them in a program somehow? If it's the latter, you probably want to make your own widget that accepts key events, and then getting the return characters should come naturally.
I'm in a bit of trouble here, hoping you can help a fellow programmer out.
I have an application that receives a pointer to raw bytes (plus length and stuff) and sends said raw data to a printer. This is important, I have no choice but to use this method to get any printing done.
If I send a raw string, it will print with no problem. However, I need to be able to print formatted text, images, etc. So the thing is... I would like to be able to get printer ready bytes from a given source (maybe a pdf, or html, does not matter as long as it contains formatted text and/or images). It would be like "splitting" the print command like so:
a) Open file and read data
b) Load printer data into memory
c) Send bytes to printer
Obviously, I've got a) and c) covered, it's b) the one that's breaking my head.
Any thoughts?
Thanks in advance for your help.
What you need is the printer processor to receive your print command and create formatted data. You wouldn't want to do this yourself, I hope (formatting to printer-ready data, even if you know PS, AFP, PCL or what it is nowadays, by heart, is very hard and months work). Instead, the printer processor of Windows should be used.
If you're on Windows (I assume, because you use C#, but perhaps you use Mono), you can send any printer command to a file (simply use the FILE: port). To create the formatted data, use any PDF library you have, or use RTF, which is supported by the .NET Framework, and send it to the selected printer (which should match the same printer that's on the other end of your application), which is configured on port FILE:.
The raw print data is then on disk, which you can simply read in as a byte array and send to your actual printer using the application you already got.