Click here to Skip to main content
13,588,613 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi all

I need code to generate barcode to read product name and price..

i searched google but confused with results.

please help

Thank you
Posted 17-Dec-12 19:05pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


Barcode is just a language like English.
Means I can say it just contain string or integer or mixed. But if you want to use it to identify your product, then you have to create one unique ID for each which will lead to product and it's price.

Means you just have to store your Product ID in barcode Language. And whenever you read your barcode it will provide a Product ID and then you have to Code in your Software to fetch the Name and it's price.

You can get helps how to create barcode (and ya reading is just very simple, it just types the ID in textbox when you press a button to read) on CodeProject.

Code-Hunt 18-Dec-12 4:47am
i saw in Codeproject.but didn't got this kind of links..can u send some...
Tarun Mangukiya 18-Dec-12 8:53am
look at
Tarun Mangukiya 18-Dec-12 9:07am
See this

Code39 type and free too
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

1-Install dll Component

Copy OnBarcode.Barcode.WinForms.dll to your .NET project folder.
Do not copy dll to .NET bin directory, .NET build tools will do it for you.

Add OnBarcode.Barcode.WinForms.dll to .NET project reference.

Add .NET Windows Form Control to .NET Visual Studio Toolbox

Right click .NET Visual Studio Toolbox, select menu Choose Items...

In "Choose Toolbox Items" form, click button "Browse...", and select dll OnBarcode.Barcode.WinForms.dll.

After selection, you will find four items under "Components" section: LinearWinForm, DataMatrixWinForm, PDF417WinForm, and QRCodeWinForm.

How to Start?
1. Generate barcodes in your .NET Class

First add OnBarcode.Barcode.WinForms.dll to .net project reference.

Linear barcode = new Linear();
barcode.Type = BarcodeType.CODE39;
barcode.Data = "0123456789";

2. Draw barcodes on your Windows Forms using barcode windows form control

Install .NET Barcode Windows Form Control.

Drag and drop LinearWinForm, DataMatrixWinForm, PDF417WinForm, and QRCodeWinForm components from your .NET toolbox to your .NET Windows Form.

You can find the dll file from the link given below


This is the path for complete information open it on net
Abhishek Pant 18-Dec-12 4:06am
where is your "Dll File Download" link doesnt works
Code-Hunt 18-Dec-12 4:20am
where is your "Dll File Download" link doesnt works
Rate this: bad
Please Sign up or sign in to vote.

Solution 11


Have a look at this article:
Barcode Image Generation Library[^]
Rate this: bad
Please Sign up or sign in to vote.

Solution 15

this will help you. exactly according to your needs
Generating Barcode for a Sale/Purchase System Using itextSharp[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web03-2016 | 2.8.180615.1 | Last Updated 8 Oct 2014
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100