Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

See,

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.

Thanks.
 
Share this answer
 
Comments
[no name] 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 http://barcodewiz.com/user-manual/Code-128-Fonts/create_barcodes_in_vb_net.aspx
Tarun Mangukiya 18-Dec-12 9:07am    
See this http://www.codeproject.com/Articles/10344/Barcode-NET-Control

Code39 type and free too
Installation
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";
barcode.drawBarcode("C://code39.png");

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


file:///E:/project/OnBarcode.BarcodeGenerator.WinForms/Developer_Guide.html#s1


This is the path for complete information open it on net
 
Share this answer
 
v2
Comments
Abhishek Pant 18-Dec-12 4:06am    
where is your "Dll File Download" link doesnt works
[no name] 18-Dec-12 4:20am    
where is your "Dll File Download" link doesnt works
Hi,

Have a look at this article:
Barcode Image Generation Library[^]
 
Share this answer
 
this will help you. exactly according to your needs
Generating Barcode for a Sale/Purchase System Using itextSharp[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900