<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Data Validation using code</title><link>https://www.infopathdev.com:443/forums/thread/33629.aspx</link><pubDate>Wed, 29 Oct 2008 09:37:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33629</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33629.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33629</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;If your code before send the email you have to check once below the condition to send the email.&lt;/p&gt;
&lt;p&gt;if(XDocument.Errors.Count &amp;gt; 0)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;return;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item><item><title>Data Validation using code</title><link>https://www.infopathdev.com:443/forums/thread/33526.aspx</link><pubDate>Sun, 26 Oct 2008 23:47:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:33526</guid><dc:creator>dharmendrapau</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/33526.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=33526</wfw:commentRss><description>&lt;p&gt;My company has around 15,000 people and they are&amp;nbsp;all spread out around the country and&amp;nbsp;use different servers.&amp;nbsp; I am building a infopath form to collect data during the christmas period for statistical purpose.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Steps involved for data collection:&lt;/p&gt;
&lt;p&gt;1. Staff complete the infopath form and then send it via email to Head office. (following code&amp;nbsp;used&amp;nbsp;- XDocument.UI.ShowMailItem(&lt;a href="mailto:test@hotmail.com"&gt;test@hotmail.com&lt;/a&gt;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;Daily Return&amp;quot;, &amp;quot;As requested, please find the attached document.&amp;quot;);)&lt;/p&gt;
&lt;p&gt;2.&amp;nbsp;Head office opens the form and download the information into an access database. (Data connection is used)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Problem:&lt;/p&gt;
&lt;p&gt;B&amp;#39;coz you can either create an email or database connection only, I am sending the email via code and download the information through database connection.&amp;nbsp; In step I am using the code to send the email, the data validation on the form does not work.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Question:&lt;/p&gt;
&lt;p&gt;Have you got any suggestion, How I can overcome this issue?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>