I placed a picturebox on a form, along with a cmd btn
I added an image to my picturebox
I put your code in the cmd click event
And it printed just fine:

Printer.PaintPicture Picture1.Image, 0, 0
Printer.EndDoc