You can use fonts for printing certian barcodes. Code 3 of 9 for example. Do a search for barcode fonts.

Also some printers include direct support for barcodes these have ways where you can directly code the barcode and the printer will create the image at print time.