<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: this.print() and switch view</title><link>https://www.infopathdev.com:443/forums/thread/78043.aspx</link><pubDate>Thu, 26 Apr 2012 18:18:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78043</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78043.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=78043</wfw:commentRss><description>&lt;p&gt;I found this bit of code from microsoft &lt;a href="http://msdn.microsoft.com/en-us/library/aa943181.aspx"&gt;http://msdn.microsoft.com/en-us/library/aa943181.aspx&lt;/a&gt;&amp;nbsp;and placed it after this.print() in myInfopath forms button_clicked method:&lt;/p&gt;&lt;p&gt;&lt;span style="color:blue;"&gt;this&lt;/span&gt;.ViewInfos.SwitchView(&lt;span&gt;&amp;quot;View2&amp;quot;&lt;/span&gt;);&lt;/p&gt;&lt;p&gt;I have no idea why it is working because I have read that there are problems/error message&amp;nbsp;with the view not printing because it thinks it&amp;#39;s switching (it&amp;#39;s busy). Knock on wood.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Update to my post&lt;/strong&gt;: the reason&amp;nbsp;error message&amp;nbsp;is when&amp;nbsp;an all code behind solution is used on the&amp;nbsp;button (instead of combined with a rule on button): switch view/print view/switch back....&lt;br /&gt;&lt;/p&gt;</description></item><item><title>this.print() and switch view</title><link>https://www.infopathdev.com:443/forums/thread/78041.aspx</link><pubDate>Thu, 26 Apr 2012 18:08:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:78041</guid><dc:creator>Doreen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/78041.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=78041</wfw:commentRss><description>&lt;p&gt;In Infopath 2007, I have a print button that should print the view I am on (form code on buttone = this.print()).&lt;/p&gt;&lt;p&gt;I had set&amp;nbsp;a rule to switch back to another view, assuming it would do&amp;nbsp;so after printing&amp;nbsp;(so user can submit the form to SharePoint) but&amp;nbsp; the problem is the print button is printing the view I am switching to instead of the view I am on first.&amp;nbsp; Is there a way to delay the switching to wait for this view to print first?&lt;/p&gt;</description></item></channel></rss>