<?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>InfoPath 2003 - Submit form to network share</title><link>https://www.infopathdev.com:443/forums/thread/64121.aspx</link><pubDate>Thu, 10 Feb 2011 21:41:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:64121</guid><dc:creator>pbays</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/64121.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=64121</wfw:commentRss><description>&lt;p&gt;I read the other post on this topic but I am lost.&amp;nbsp; On submit I would like it to save an XML file to a network share using a Date/Time picker for the name of the file that gets saved.&amp;nbsp; I am code stupid, so any help is greatly appriciated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Here is the code as it stand at this moment:&amp;nbsp; &lt;/p&gt;
&lt;p&gt;/* * This file contains functions for data validation and form-level events. &lt;/p&gt;
&lt;p&gt;* Because the functions are referenced in the form definition (.xsf) file, &lt;/p&gt;
&lt;p&gt;* it is recommended that you do not modify the name of the function, &lt;/p&gt;
&lt;p&gt;* or the name and number of arguments. &lt;/p&gt;
&lt;p&gt;* &lt;/p&gt;
&lt;p&gt;*/ &lt;/p&gt;
&lt;p&gt;// The following line is created by Microsoft Office InfoPath to define the prefixes &lt;/p&gt;
&lt;p&gt;// for all the known namespaces in the main XML data file. &lt;/p&gt;
&lt;p&gt;// Any modification to the form files made outside of InfoPath &lt;/p&gt;
&lt;p&gt;// will not be automatically updated. &lt;/p&gt;
&lt;p&gt;// XDocument.DOM.setProperty(&amp;quot;SelectionNamespaces&amp;quot;, &amp;#39;xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot; xmlns:d=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/ado/dataFields&amp;quot; xmlns:dfs=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&amp;quot; xmlns:my=&amp;quot;http://schemas.microsoft.com/office/infopath/2003/myXSD/2011-02-10T20:42:46&amp;quot; xmlns:xd=&amp;quot;http://schemas.microsoft.com/office/infopath/2003&amp;quot;&amp;#39;); &lt;/p&gt;
&lt;p&gt;// //======= // The following function handler is created by Microsoft Office InfoPath. &lt;/p&gt;
&lt;p&gt;// Do not modify the name of the function, or the name and number of arguments. /&lt;/p&gt;
&lt;p&gt;/======= &lt;/p&gt;
&lt;p&gt;function XDocument::OnSubmitRequest(eventObj) &lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;// If the submit operation is successful, set &lt;/p&gt;
&lt;p&gt;// eventObj.ReturnStatus = true; &lt;/p&gt;
&lt;p&gt;// Write your code here &lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description></item></channel></rss>