<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Form Validation Checking</title><link>https://www.infopathdev.com:443/forums/thread/86660.aspx</link><pubDate>Fri, 01 Feb 2013 15:51:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86660</guid><dc:creator>XGW2013</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86660.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=86660</wfw:commentRss><description>&lt;p&gt;I have a web-based infopath form with many validations rules added to the form. I need to disable printing function if the form contains any validation errors.&lt;/p&gt;
&lt;p&gt;What I did was when the print view is loaded in web browser, I checked the count of&amp;nbsp;this.Errors in the FormEvents_Loading. If the count is not 0, then I disabled the printing functions. &lt;/p&gt;
&lt;p&gt;The problem is that the this.Errors.count is not 0 if the form is even the form does not contain any validation errors if the&amp;nbsp;printing view form is not opened from a saved form.&amp;nbsp;More specifically, createa a new form, fill it in so that there&amp;nbsp;are no validation errors, save it, and then click Print Preview button, then the this.Errors.count is not 0 in side the the FormEvents_Loading. If I closed the form, reopen it and then click the Print Preview button, then&amp;nbsp; this.Errors.count is&amp;nbsp;0 in side the the FormEvents_Loading. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;So my question, how do I get the correct count of this.Errors without closing form and re-opening it? Any help would be greately appreciated.&lt;/p&gt;</description></item></channel></rss>