It's easier to download barcode font. There are several barcode standards widely acceptable like code 39. Freeware fonts are available on the Internet, some of them are Ok. Check if your barcode scanner is able to read them.
Code 39 Barcode Specification
http://www.barcodeman.com/info/c39_1.php3There's hardly a reason to develop your own barcode printing utility, just in case you want to give a try.