<?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: C# print statement</title><link>https://www.infopathdev.com:443/forums/thread/53179.aspx</link><pubDate>Mon, 29 Mar 2010 10:47:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53179</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53179.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53179</wfw:commentRss><description>&lt;p&gt;try this.&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;Convert&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.ToInt32(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.MainDataSource.CreateNavigator().SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;FullXPath&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.NamespaceManager).Value) &amp;lt;= 35)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Print();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: C# print statement</title><link>https://www.infopathdev.com:443/forums/thread/53161.aspx</link><pubDate>Fri, 26 Mar 2010 19:22:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53161</guid><dc:creator>ofergal</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53161.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53161</wfw:commentRss><description>&lt;p&gt;Using infopath 2007 in VS 2008 this statments do not work!&lt;/p&gt;
&lt;p&gt;thisXDocument does not exist. do I have to reference something else?&lt;/p&gt;</description></item><item><title>Re: JScript print statement</title><link>https://www.infopathdev.com:443/forums/thread/13273.aspx</link><pubDate>Tue, 21 Jun 2005 23:18:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13273</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13273.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13273</wfw:commentRss><description>Depending on what language you are coding in:&lt;pre&gt;&lt;br /&gt;----------&lt;br /&gt;C#:&lt;br /&gt;----------&lt;br /&gt;if(Convert.ToInt32(thisXDocument.DOM.selectSingleNode("/my:FullXPath/my:WeekTotal").text) &amp;lt;= 35)&lt;br /&gt;    thisXDocument.PrintOut();&lt;br /&gt;&lt;br /&gt;----------&lt;br /&gt;JScript:&lt;br /&gt;----------&lt;br /&gt;if(parseInt(XDocument.DOM.selectSingleNode("/my:FullXPath/my:WeekTotal").text) &amp;lt;= 35)&lt;br /&gt;    XDocument.PrintOut();&lt;/pre&gt;&lt;br /&gt;Also keep in mind that using PrintOut() requires your form to be set to Full Trust security.&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]&lt;br /&gt;InfoPath Dev</description></item><item><title>JScript print statement</title><link>https://www.infopathdev.com:443/forums/thread/12471.aspx</link><pubDate>Tue, 21 Jun 2005 13:50:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12471</guid><dc:creator>jeffshex</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12471.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12471</wfw:commentRss><description>Can someone tell me if I'm doing this right?&lt;br /&gt;&lt;br /&gt;XDocument.Submit(); &lt;br /&gt;if((int)XDocument.DOM.selectSingleNode("//my:WeekTotal").text &amp;lt;= 35)&lt;br /&gt;{XDocument.PrintOut();} &lt;br /&gt;&lt;br /&gt;Alls I'm trying to do is after the submit to database is if the WeekTotal Field is under 35, it auto prints.&lt;br /&gt;&lt;br /&gt;I don't know if it's right though, cause it won't work for me.&lt;br /&gt;Thanks!</description></item></channel></rss>