<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Printing .jpg files with python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/printing-jpg-files-with-python/m-p/381380#M30050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you looked at &lt;/SPAN&gt;&lt;A href="http://timgolden.me.uk/python/win32_how_do_i/print.html#win32print"&gt;http://timgolden.me.uk/python/win32_how_do_i/print.html#win32print&lt;/A&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Apr 2011 20:18:22 GMT</pubDate>
    <dc:creator>MattiasWallin</dc:creator>
    <dc:date>2011-04-27T20:18:22Z</dc:date>
    <item>
      <title>Printing .jpg files with python</title>
      <link>https://community.esri.com/t5/python-questions/printing-jpg-files-with-python/m-p/381379#M30049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2011 20:47:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/printing-jpg-files-with-python/m-p/381379#M30049</guid>
      <dc:creator>MikePowell</dc:creator>
      <dc:date>2011-04-22T20:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Printing .jpg files with python</title>
      <link>https://community.esri.com/t5/python-questions/printing-jpg-files-with-python/m-p/381380#M30050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you looked at &lt;/SPAN&gt;&lt;A href="http://timgolden.me.uk/python/win32_how_do_i/print.html#win32print"&gt;http://timgolden.me.uk/python/win32_how_do_i/print.html#win32print&lt;/A&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 20:18:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/printing-jpg-files-with-python/m-p/381380#M30050</guid>
      <dc:creator>MattiasWallin</dc:creator>
      <dc:date>2011-04-27T20:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Printing .jpg files with python</title>
      <link>https://community.esri.com/t5/python-questions/printing-jpg-files-with-python/m-p/381381#M30051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I have, and I have tried it. It works but it doesn't seem to load the .jpg. It just prints a blank piece of paper. It looks like it is loading the .jpg in the queue but again nothing prints. Unless I am doing something wrong, which is entirely possible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 20:26:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/printing-jpg-files-with-python/m-p/381381#M30051</guid>
      <dc:creator>MikePowell</dc:creator>
      <dc:date>2011-04-27T20:26:45Z</dc:date>
    </item>
  </channel>
</rss>

