I am trying to output to a barcode printer. Has anyone had any success doing this? I have had no problem doing this in VB6 the way Deepak suggested.

Edneeis's code outputs the string "Hello" to the default printer. I output OK to the laser printer but get an error message when I set the barcode printer as the default and try printing.

"Tried to access printer with invalid settings"