Click here to Skip to main content
15,884,237 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Good Morning Experts

I am looking a tutorial or sample code for generating custom Barcodes and save in DB2 or MySQL and later print them on PDF.
My Bar code should be in US29 format something like MFI-08062015123
MFI Company name
08062015- Date
123- Actual series of number

I want to actually save the Code as string in DB and when printing on PDF, I want it to convert to barcode.

I have tried working with GenCode1298dll and IDAutomation.LinearBarcode.dll
Either has helped me in generating a code like we want it to be.
Can someone help me with that please?
Posted
Updated 6-Aug-15 2:58am
v3
Comments
[no name] 6-Aug-15 12:18pm    
a.) "I want to actually save the Code as string in DB"
Sounds good. You save the data to generate a Barcode later.

b.) "Either has helped me in generating a code like we want it to be. Can someone help me with that please?"
What was/is the Problem? With what you are unhappy?
sudevsu 6-Aug-15 13:52pm    
So consider my string is "MFI-08052015-123"
I will save that in DB as string value.
But when user clicks on Print button, it is going to fill in the PDF form and then it should add the associated string " MFI-08052015-123" in scanner barcode form. Now I am unhappy with the dll I am using for this. I would like to use my own code instead of readily available dlls. Because, it has to be licensed after trail and it also prints a water mark on the barcode of their company name. I don't want either to happen.
So I am looking for customized code for creating the string to Barcode Image.
[no name] 6-Aug-15 14:00pm    
"Now I am unhappy with the dll I am using for this":
Ok, I understand a Little bit more. You have two Options in my opinion:
a.) Write the "Barcode renderer" by yourself... quite a lot of work
b.) Dive in, into open source solution (Google helps). Ok, also a lot of work, but you do not Need to care that much about license fees.
sudevsu 6-Aug-15 14:31pm    
Yeah That's the help I am looking for
An open source solution that does the work.
I didnt find any reliable open source. So I am asking for help here about the sample code for writing our won Barcode renderer.
I always check with google first and then come here for help.
[no name] 6-Aug-15 15:03pm    
Ok give me some time. I will check. I'm sure also here in CP there are plenty of articles/tips about this.

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