<?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: How to Save with code?</title><link>https://www.infopathdev.com:443/forums/thread/40988.aspx</link><pubDate>Sun, 26 Apr 2009 22:08:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40988</guid><dc:creator>ocampod84</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40988.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40988</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;In VB, to work with the DOM, you&amp;#39;ll need to enter the following code:&lt;/p&gt;&lt;p&gt;Dim DOM as XPathNavigator = MainDatasource.CreateNavigator()&lt;/p&gt;&lt;p&gt;To reference a node, you&amp;#39;ll need to copy the XPath from the node&amp;#39;s data source and paste it into code:&lt;/p&gt;&lt;p&gt;Dim field1 as XPathNavigator = DOM.SelectSingleNode(&amp;quot;&lt;i&gt;xpath&amp;quot;, &lt;/i&gt;NamespaceManager)&lt;/p&gt;&lt;p&gt;Look up MSDN&amp;#39;s help with using the InfoPath 2007 Object Model &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: How to Save with code?</title><link>https://www.infopathdev.com:443/forums/thread/40839.aspx</link><pubDate>Wed, 22 Apr 2009 06:00:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40839</guid><dc:creator>kmanji</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40839.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40839</wfw:commentRss><description>Hi... 

Thanks for the reply. I have pretty much relied on the no-code options of infopath to create the entire form, as I don&amp;#39;t know JS or VB. Whenever I tried using code, the form did not open, and I had to remove it (I was probably doing it all wrong).

Is it possible to assist me on how to reference the nodes to get a custom filename? I couldn&amp;#39;t figure that out.

Thanks for all your help.

Kumail.</description></item><item><title>Re: How to Save with code?</title><link>https://www.infopathdev.com:443/forums/thread/40828.aspx</link><pubDate>Tue, 21 Apr 2009 21:32:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40828</guid><dc:creator>ocampod84</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40828.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=40828</wfw:commentRss><description>&lt;p&gt;You can use this code to start you off:&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&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="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.[New] &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Then&lt;/p&gt;&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;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.SaveAs(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;C:\form.xml&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Else&lt;/p&gt;&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;Me&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Save()&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;End&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;If&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;You will need to make references to nodes in order to get a custom file name.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>How to Save with code?</title><link>https://www.infopathdev.com:443/forums/thread/38750.aspx</link><pubDate>Sat, 21 Feb 2009 09:10:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38750</guid><dc:creator>kmanji</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38750.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=38750</wfw:commentRss><description>&lt;p&gt;Hi Guys.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve made a quotation form which will be used by different salespersons, each on their account on a local server. I want to be able to enable them to save the form on their own account, using a filename that is created from a field in the form.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Eg. Save form1 as &amp;quot;Quotation-fieldCustomerName-fieldDate&amp;quot; in the folder c:\salesperson1\quotations\filename&lt;/p&gt;&lt;p&gt;salesperson1, salesperson2 would be the windows login account of the salesperson. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Please assist if you can.&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;p&gt;Kumail. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>