<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Save/Export form to a computer's folder using a button</title><link>https://www.infopathdev.com:443/forums/thread/50102.aspx</link><pubDate>Mon, 21 Dec 2009 22:38:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50102</guid><dc:creator>ACrush</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50102.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50102</wfw:commentRss><description>by the way, make sure that you use the backslash correctly in strings. Some languages like C (js is genetically close, but I&amp;#39;m not sure) require it to be escaped: &amp;quot;C:\\Feedback\\&amp;quot;</description></item><item><title>Re: Save/Export form to a computer's folder using a button</title><link>https://www.infopathdev.com:443/forums/thread/50101.aspx</link><pubDate>Mon, 21 Dec 2009 22:35:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50101</guid><dc:creator>ACrush</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50101.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50101</wfw:commentRss><description>Your path should contain the file name too. Say &amp;quot;C:\Feedback\&amp;quot;+node.Value+&amp;quot;.xml&amp;quot;. Just make sure you have the appropriate text value in the node and you know what you&amp;#39;re doing when you overwrite existing files.</description></item><item><title>Re: Save/Export form to a computer's folder using a button</title><link>https://www.infopathdev.com:443/forums/thread/50055.aspx</link><pubDate>Fri, 18 Dec 2009 17:42:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50055</guid><dc:creator>samsonsandeep</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50055.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50055</wfw:commentRss><description>&lt;p&gt;hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Tried the same ...exactly used the command as :&lt;/p&gt;
&lt;p&gt;// Do not modify the name of the function, or the name and number of arguments. //======= function CTRL22_5::OnClick(eventObj) { this.saveas(&amp;quot;C:\Feedback\&amp;quot;); } &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;but getting an error as:&lt;/p&gt;
&lt;p&gt;Unterminated string constant&lt;br /&gt;File:script.js&lt;br /&gt;Line:24&lt;br /&gt;&amp;nbsp;this.saveas(&amp;quot;C:\Feedback\&amp;quot;);&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Note: As i told one of the entry in the form is the filename, will this command capture the data entered in filename and save it accordingly each time? If not what change must I do?&lt;/p&gt;</description></item><item><title>Re: Save/Export form to a computer's folder using a button</title><link>https://www.infopathdev.com:443/forums/thread/50045.aspx</link><pubDate>Fri, 18 Dec 2009 10:31:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50045</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50045.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50045</wfw:commentRss><description>&lt;p&gt;drop a button on to the form, double click the form -&amp;gt; edit form code.&lt;/p&gt;
&lt;p&gt;write the code there.&lt;/p&gt;</description></item><item><title>Re: Save/Export form to a computer's folder using a button</title><link>https://www.infopathdev.com:443/forums/thread/50039.aspx</link><pubDate>Fri, 18 Dec 2009 07:17:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50039</guid><dc:creator>samsonsandeep</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50039.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50039</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your reply but where exactly should i paste the code into?....i know to have the button inserted. How do I set the button options and have your code entered there? and will this code help me save in mht format?&lt;/p&gt;</description></item><item><title>Re: Save/Export form to a computer's folder using a button</title><link>https://www.infopathdev.com:443/forums/thread/50036.aspx</link><pubDate>Fri, 18 Dec 2009 05:33:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50036</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50036.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50036</wfw:commentRss><description>&lt;p&gt;this.saveas(&amp;quot;your path&amp;quot;);&lt;/p&gt;
&lt;p&gt;should do the stuff for you&lt;/p&gt;</description></item><item><title>Save/Export form to a computer's folder using a button</title><link>https://www.infopathdev.com:443/forums/thread/50028.aspx</link><pubDate>Thu, 17 Dec 2009 21:58:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50028</guid><dc:creator>samsonsandeep</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50028.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=50028</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am in urgent need of solving this. I have designed the form. I need to include a button in the form which when clicked would locally save the form to a predefined folder in PC. The filename of the form saved would be a field&amp;#39;s data (field name is &amp;quot;filename&amp;quot; present in the form to be filled). The preferred format of saving the form would be .mht; however the usual infopath form is also acceptable if that is not possible. I did see some codes in some other threads but I do not exactly know how and where to place the code. Someone plz help this newbie step by step.&amp;nbsp; Basically, I need to use the form throughout the day, its really not possible to each time go clicking the export option from menu and type out the long file name. So a button option that does the function would be real fine. Awaiting your responses..Thanks in advance&lt;/p&gt;</description></item></channel></rss>