<?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>After Print, Errors freeze (IP 2003)</title><link>https://www.infopathdev.com:443/forums/thread/22111.aspx</link><pubDate>Tue, 31 Jul 2007 18:04:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22111</guid><dc:creator>admot</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22111.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=22111</wfw:commentRss><description>&lt;p&gt;I implemented a Print Preview code in a button:&lt;/p&gt;&lt;p&gt;{&lt;br /&gt;&amp;nbsp;var confirmprtint;&lt;/p&gt;&lt;p&gt;&amp;nbsp;confirmprtint = XDocument.UI.Confirm(&amp;quot;This feature will take you to Print Preview. From there, you can print the form by clicking on the printer icon located at the top left corner.\rNote: This will print directly to your default printer. The default printer and its settings can be changed through the Windows Control Panel.\r\rDo you wish to continue?&amp;quot;, 1);&lt;/p&gt;&lt;p&gt;&amp;nbsp;if (confirmprtint == 1) &lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;Application.ActiveWindow.CommandBars(&amp;quot;Standard&amp;quot;).Controls(&amp;quot;Print Preview&amp;quot;).Execute();&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I also have a control showing the # of errors on the form. After the user clicks on Print Previewm the number of errors showing freezes. I tried replacing the Application.ActiveWindow.CommandBars command with the standard PrintOut(), implemented else 1==1, and a few other things but both yielding the same results. &lt;/p&gt;&lt;p&gt;Anyone know why print preview would cause the error count to freeze?&lt;/p&gt;</description></item></channel></rss>