Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate barcode from a string using C#?

Tags:

  • Is it possible to generate barcode from a string using c#?
  • Is there any builtin classes for generating barcodes in asp.net?
  • Is it possible to detect a barcode printer connected with a system?
like image 799
ACP Avatar asked Jan 04 '10 08:01

ACP


People also ask

Can I generate my own barcode?

Most barcode generators are free. In fact, you can use the Barcode Font in Microsoft Word to generate your own barcodes. Therefore, with less than $100, you can create a system set to make your own barcodes.

How can I make barcode?

To create a barcodeSelect the barcode type: EAN-13, UPC-A, Code 39, or ITF. Fill in the product category information in the barcode data box. Click on the barcode title box and barcode note if you want to add them in the barcode. Add a name for the barcode in the title box and more details in the note box.


1 Answers

Yep. Of course it is possible. :-)
As far as I know there are two ways to generate bar codes:

  1. Using a special bar code font (try to google for "barcode font free")
  2. Render the bar code to an image and display that (try using the Barcode Rendering Framework available on github)

In response to your updated question about detecting barcode printers:
I think a barcode printer will show up as a regular printer on your system. At least that is how the devices I have played with have worked.
This means that you can detect a specific barcode printer by enumerating the installed printers on the system and looking for the specified device, but in most cases I would suggest that you let the user specify the printer himself using either the standard print dialog or using a custom dialog.

like image 134
Rune Grimstad Avatar answered Sep 19 '22 17:09

Rune Grimstad