You can easily print a barcode with a normal laser printer (with a full ink cartridge in full resolution) or even with portable printers, as long as they have enough ink, that is.
I have done that several times, in fact I print these every single day. I use a HP M1132 printer laserjet and several different portable printers that could print anything. All you have to do is really use that sticky paper (if you want them as tags for products, for example).
Make sure you set your normal desk printer to ful resolution before printing. As for the small printers all I do is adjust the sizing of the paper to the sizing of my tag wit the barcode, super chill, really.
Hope this helps.