Printing .jpg files with python

Discussion created by digmapper on Apr 22, 2011
Latest reply on Apr 27, 2011 by digmapper
This might be a little off the ArcGIS aspect of the forum but I am having a terrible time trying to find anything on how to simply print an existing .jpg file with python. I have tried the win32api.ShellExecute. However, that only works with the default printer and certain Microsoft software packages (Obviously, when I open a .jpg file it opens something that doesn't understand ShellExecute, hence it doesn't work). I do not know how to associate the .jpg files with another program, I use to know, but that was way back in the day. I have tried win32print. That seems to be what I want, but I can't get it to print the .jpg file. I see it going into the printer queue but it only prints a blank piece of paper. I am not much of a programmer, I read some stuff on using ghostwriter but I can't seem to get that to download correctly and it seems a little more complicated than I really want it to be. Any help would be greatly appreciated