<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Printing Word And PDF files from Python</title>
	<atom:link href="http://www.darkcoding.net/software/printing-word-and-pdf-files-from-python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.darkcoding.net/software/printing-word-and-pdf-files-from-python/</link>
	<description>Solvitas perambulum</description>
	<lastBuildDate>Mon, 06 Feb 2012 00:12:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: przemeq</title>
		<link>http://www.darkcoding.net/software/printing-word-and-pdf-files-from-python/#comment-846</link>
		<dc:creator>przemeq</dc:creator>
		<pubDate>Sun, 04 Oct 2009 15:57:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkcoding.net/software/printing-word-and-pdf-files-from-python/#comment-846</guid>
		<description>&lt;p&gt;Hello tuco,&lt;/p&gt;

&lt;p&gt;I had just the same problem with Acrobat 9.0.x.
After you do
       ie.Navigate(”test_file.pdf”)
do also
       ie.Visible = 1
and check out the URL on the address toolbar ;)&lt;/p&gt;

&lt;p&gt;in my case the URL was wrong, what IE expects is something like:
 c:\Documents and Settings\User01\My Documents\test_file.pdf&lt;/p&gt;

&lt;p&gt;Good luck!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hello tuco,</p>

<p>I had just the same problem with Acrobat 9.0.x.
After you do
       ie.Navigate(”test_file.pdf”)
do also
       ie.Visible = 1
and check out the URL on the address toolbar ;)</p>

<p>in my case the URL was wrong, what IE expects is something like:
 c:\Documents and Settings\User01\My Documents\test_file.pdf</p>

<p>Good luck!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Yuppe</title>
		<link>http://www.darkcoding.net/software/printing-word-and-pdf-files-from-python/#comment-845</link>
		<dc:creator>Yuppe</dc:creator>
		<pubDate>Thu, 07 Feb 2008 21:25:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkcoding.net/software/printing-word-and-pdf-files-from-python/#comment-845</guid>
		<description>&lt;p&gt;At http://win32com.goermezer.de/content/view/37/187/ is a related example which directly prints the page to a printer without prompting.&lt;/p&gt;

&lt;p&gt;Mustafa
http://www.goermezer.de&lt;/p&gt;

&lt;p&gt;[graham] Thanks Mustafa!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>At <a href="http://win32com.goermezer.de/content/view/37/187/" rel="nofollow">http://win32com.goermezer.de/content/view/37/187/</a> is a related example which directly prints the page to a printer without prompting.</p>

<p>Mustafa
<a href="http://www.goermezer.de" rel="nofollow">http://www.goermezer.de</a></p>

<p>[graham] Thanks Mustafa!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: tuco</title>
		<link>http://www.darkcoding.net/software/printing-word-and-pdf-files-from-python/#comment-844</link>
		<dc:creator>tuco</dc:creator>
		<pubDate>Tue, 29 Jan 2008 19:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkcoding.net/software/printing-word-and-pdf-files-from-python/#comment-844</guid>
		<description>&lt;p&gt;Here is a solution I found on the net for PDF files.  You need to know the printer name as Windows wants to see it. In my case, it was a network printer generically shown here.&lt;/p&gt;

&lt;p&gt;import win32api
import win32print&lt;/p&gt;

&lt;p&gt;win32print.SetDefaultPrinter(&quot;&#092;&#092;server&#092;share&quot;)
win32api.ShellExecute(0, &quot;print&quot;, &quot;test_file.pdf&quot;, &quot;.&quot;, 0)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Here is a solution I found on the net for PDF files.  You need to know the printer name as Windows wants to see it. In my case, it was a network printer generically shown here.</p>

<p>import win32api
import win32print</p>

<p>win32print.SetDefaultPrinter(&#8220;&#92;&#92;server&#92;share&#8221;)
win32api.ShellExecute(0, &#8220;print&#8221;, &#8220;test_file.pdf&#8221;, &#8220;.&#8221;, 0)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: tuco</title>
		<link>http://www.darkcoding.net/software/printing-word-and-pdf-files-from-python/#comment-843</link>
		<dc:creator>tuco</dc:creator>
		<pubDate>Tue, 29 Jan 2008 18:27:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.darkcoding.net/software/printing-word-and-pdf-files-from-python/#comment-843</guid>
		<description>&lt;p&gt;Acrobat v7.0.9
Python v2.5
POS IE6&lt;/p&gt;

&lt;p&gt;&gt;&gt;&gt; from win32com import client
&gt;&gt;&gt; ie = client.Dispatch(&quot;InternetExplorer.Application&quot;)
&gt;&gt;&gt; ie.Navigate(&quot;test_file.pdf&quot;)
&gt;&gt;&gt; ie.Document.printAll()
Traceback (most recent call last):
File &quot;(stdin)&quot;, line 1, in
file &quot;C:\Python25\lib\site-packages\win32com\client\dynamic.py&quot;. line 496, in &lt;strong&gt;getattr&lt;/strong&gt;
    raise AttributeError, &quot;%s.%s&quot; % (self.&lt;em&gt;username&lt;/em&gt;, attr)
AttributeError: Document.printAll&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Acrobat v7.0.9
Python v2.5
POS IE6</p>

<p>&gt;&gt;&gt; from win32com import client
&gt;&gt;&gt; ie = client.Dispatch(&#8220;InternetExplorer.Application&#8221;)
&gt;&gt;&gt; ie.Navigate(&#8220;test_file.pdf&#8221;)
&gt;&gt;&gt; ie.Document.printAll()
Traceback (most recent call last):
File &#8220;(stdin)&#8221;, line 1, in
file &#8220;C:\Python25\lib\site-packages\win32com\client\dynamic.py&#8221;. line 496, in <strong>getattr</strong>
    raise AttributeError, &#8220;%s.%s&#8221; % (self.<em>username</em>, attr)
AttributeError: Document.printAll</p>]]></content:encoded>
	</item>
</channel>
</rss>

