<?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: Submit button</title><link>https://www.infopathdev.com:443/forums/thread/57056.aspx</link><pubDate>Sat, 17 Jul 2010 13:51:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57056</guid><dc:creator>Skarn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57056.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=57056</wfw:commentRss><description>&lt;p&gt;You could dump the XDocument.xml property to a text file - but I don&amp;#39;t know how you would &amp;#39;remove&amp;#39; the user&amp;#39;s access - you&amp;#39;d have to adjust file permissions?? Perhaps you could use a shell command to cacls.exe (could be dangerous).&lt;/p&gt;
&lt;p&gt;Another way, if superficial &amp;#39;hiding&amp;#39; from user is suitable - before saving to file you could set a &amp;#39;flag&amp;#39; field to a value. Then have a rule on form open which if that field = value it should switch to a BLANK view. If the user finds the form that was saved and tried to open it - it will display as blank.&lt;/p&gt;</description></item><item><title>Re: Submit button</title><link>https://www.infopathdev.com:443/forums/thread/54927.aspx</link><pubDate>Mon, 17 May 2010 00:35:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54927</guid><dc:creator>Lawson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54927.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=54927</wfw:commentRss><description>&lt;p&gt;I would like the form to be saved to a specific path on the shared drive, and I would like to take the form from the user, ie the user would no longer have access to it. &lt;/p&gt;</description></item><item><title>Re: Submit button</title><link>https://www.infopathdev.com:443/forums/thread/54926.aspx</link><pubDate>Sun, 16 May 2010 21:04:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54926</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54926.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=54926</wfw:commentRss><description>&lt;p&gt;What exactly do you want to happen after the user clicks submit&lt;/p&gt;</description></item><item><title>Submit button</title><link>https://www.infopathdev.com:443/forums/thread/54924.aspx</link><pubDate>Sun, 16 May 2010 18:13:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54924</guid><dc:creator>Lawson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54924.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=54924</wfw:commentRss><description>&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;I have created a form in IP 2003 with many different attachment fields. My users will attach documents to this form and press a submit button with the following C# code:&lt;/font&gt;&lt;/p&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;this&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;.thisXDocument.SaveAs(&lt;span style="COLOR:maroon;"&gt;@&amp;quot;PATH&amp;quot;&lt;/span&gt; + ContractNumber + &lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:teal;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;DateTime&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;.Now.ToString(&lt;span style="COLOR:maroon;"&gt;&amp;quot;yyyy.MM.dd_HH.mm.ss.ff&amp;quot;&lt;/span&gt;) + &lt;span style="COLOR:maroon;"&gt;&amp;quot;.xml&amp;quot;&lt;/span&gt;);&lt;/span&gt;&lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;this&lt;/span&gt;&lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;.thisApplication.Quit(&lt;span style="COLOR:blue;"&gt;true&lt;/span&gt;);&lt;/span&gt;&lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt; 
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;I have a problem with this method of transfering the form from the user to me. Our users store these forms on a shared drive. However, the forms can be extremely large, and the forms are eating up space on the shared drive. &lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;strong&gt;Once the user presses the submit button I have coded, is there anyway to take the form from the user?&lt;/strong&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="LINE-HEIGHT:115%;FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;This&amp;nbsp;may eliminate the space issues on the shared drive.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>