<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: VB .NET 2008 Printer Manipulation</title><link>https://www.infopathdev.com:443/forums/thread/49053.aspx</link><pubDate>Fri, 13 Nov 2009 20:38:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49053</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49053.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=49053</wfw:commentRss><description>&lt;p&gt;The MSDN docs say about PrintOut:&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;PrintOut&lt;/strong&gt; method uses the current printer settings&lt;/p&gt;
&lt;p&gt;So, that&amp;#39;s out. It looks like the XmlForm.Print method also uses the current printer settings, so I don&amp;#39;t think switching to 2007 would make a difference here. It may be changing the default printer is the only path for this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>VB .NET 2008 Printer Manipulation</title><link>https://www.infopathdev.com:443/forums/thread/48801.aspx</link><pubDate>Mon, 09 Nov 2009 13:22:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48801</guid><dc:creator>SSCUSTER</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48801.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=48801</wfw:commentRss><description>&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Hello,&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;I have a VB .NET 2008 application that opens a given InfoPath document in InfoPath 2003 or 2007 for the user: appIP.XDocuments.Open(lstrNewXmlFileBuilder.ToString())&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;Now instead of opening the InfoPath GUI for the user, I&amp;nbsp;want to&amp;nbsp;send the InfoPath document to&amp;nbsp;a PDF printer:&amp;nbsp;appIP.Windows(0).XDocument.PrintOut()&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;My problem is that I have not been able to find how to direct the PrintOut command to a&amp;nbsp;specified printer.&amp;nbsp; If at all possible, I do not want to changed the user&amp;#39;s&amp;nbsp;Default Printer.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;My app has referenced Microsoft.Office.Interop.InfoPath version 11 so that users with InfoPath 2003 can use it.&amp;nbsp; However, if the solution to this requires that I change that reference to version 12, I am prepared to do that.&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;FONT-SIZE:10pt;"&gt;I would appreciate any help that I can get; my boss wants this project to be completed last week.&lt;/span&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>