You need to sign in to do that
Don't have an account?

Generate Barcode using Visualforce and Apex
Hi Fridends...
How to Generate Barcode program in apex and Visualforce?
Thanks & Regards
Shiva...
You need to sign in to do that
Don't have an account?
Hi Fridends...
How to Generate Barcode program in apex and Visualforce?
Thanks & Regards
Shiva...
I dont think this is possible in Apex. There is no graphics Api in Apex as such to draw bar code lines etc. Also, you would probably want this barcode as a thumbnail image for your product or something if I am not wrong. There are some 3rd party web services Api that can do this job for you. Google and try to find a free Api first though I feel bar code generation is always a paid service. Good luck.
thankq for suggestion bvramkumar.
But to to integrate?
Thanks & Regards
Shiva
To integrate, there are ways in Apex. For eg. you can send an HttpRequest or SOAP request etc. to the webservice to recieve the barcode you are expecting. Check this article : http://salesforcetrekbin.blogspot.in/2010/04/call-external-web-service-from.html
You could use some online services which provides the barcodes via URLs. For example, below service provides the bar codes for text specified in url.
Url behind image is http://www.barcodesinc.com/generator/image.php?code=Your%20Text&style=325&type=C128B&width=200&height=50&xres=1&font=3
You can add this url to a apex:image tag and get the barcode in vf page.
Please check that the service provider license is appropriate for your use.
You can construct the url dynamically in VF and when it is rendered in the webpage, corresponding barcode would be displayed, something like this.
Hi Santosh kumar
Is this public PHP page free for use? Or it has license related limitations? I understand the idea that the image will have to constructed in a third party website and just integrated into salesforce.
Thanks
It varies by the vendor who provides that online service. Please check with them if that license is appropriate for you.
Check out the Barcode Zone app in the AppExchange. It is free.
I am facing the same issue of generating BarCodes in VF Pdf. But i do not know how can i do it.
Have you found any solution??
http://www.businessrefinery.com/products/barcode_net/main.html
http://www.businessrefinery.com/products/barcode/main.html
You can have a test with these two resources. I think it will be helpful.