<?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: Export to (Tab Delimited) Text File</title><link>https://www.infopathdev.com:443/forums/thread/30878.aspx</link><pubDate>Sat, 26 Jul 2008 01:04:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30878</guid><dc:creator>PJagger</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30878.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=30878</wfw:commentRss><description>&lt;p&gt;Hey Greg,&lt;/p&gt;
&lt;p&gt;Sorry for the delayed response, I have been acutely ill and bedridden.&lt;/p&gt;
&lt;p&gt;I tried without the double backslashes and it worked using the selectSingleNoe function!&lt;/p&gt;
&lt;p&gt;Now my challenge is the fill the text file in tab delimited format so it matches what the excel export produced.&lt;/p&gt;
&lt;p&gt;Regards - Phil&lt;/p&gt;</description></item><item><title>Re: Export to (Tab Delimited) Text File</title><link>https://www.infopathdev.com:443/forums/thread/30425.aspx</link><pubDate>Mon, 14 Jul 2008 17:48:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30425</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30425.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=30425</wfw:commentRss><description>&lt;p&gt;The backslash is an escpae character used to identify other characters--and beyond the scope of this discussion. However, because it is an escape character, you must use a double backslash to identify that you want to use the &amp;quot;actual&amp;quot; backslash character.&lt;/p&gt;
&lt;p&gt;What you might try doing (because I haven&amp;#39;t tried this myself) is to see whether using a single backslash character in the field value works. It might be that the code will automatically escape those characters since they are not a hard-coded string.&lt;/p&gt;</description></item><item><title>Re: Export to (Tab Delimited) Text File</title><link>https://www.infopathdev.com:443/forums/thread/30033.aspx</link><pubDate>Wed, 02 Jul 2008 13:51:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30033</guid><dc:creator>PJagger</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30033.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=30033</wfw:commentRss><description>&lt;p&gt;Thanks Greg,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m making progress.&amp;nbsp; I have implemented the following script successfully:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;{ &lt;br /&gt;var fso = new ActiveXObject(&amp;quot;Scripting.FileSystemObject&amp;quot;); &lt;br /&gt;var FileObject = fso.OpenTextFile(&amp;quot;\\\\Eaglet\\Share\\Test.txt&amp;quot;, 2, true,0);&amp;nbsp;&lt;br /&gt;FileObject.Write(&amp;quot;Hello Baby&amp;quot;); &lt;br /&gt;FileObject.Close() &lt;br /&gt;}&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;My problem now is that I don&amp;#39;t know how to substitute &lt;a&gt;\\\\Eaglet\\Share\\Test.txt&lt;/a&gt; with a field from the form (which contains a path and filename based on a Master Template for the user&amp;#39;s domain.&amp;nbsp; I have tried to use the following...&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:ExportDetails/my:ExportPath/my:Test&amp;quot;).text&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;...where my:Test contains the path and filename.&amp;nbsp;&amp;nbsp;I get an error message &amp;quot;Infopath cannot complete this action, because of an error in the form&amp;#39;s code&amp;quot;.&lt;/p&gt;
&lt;p&gt;Any suggestions?&lt;br /&gt;BTW I&amp;#39;m not sure why, but using double backslashes in the above script was the only way to get it to work.&amp;nbsp; The field designated by my xpath statement also has double backslashes.&lt;/p&gt;
&lt;p&gt;Regards - Phil&lt;/p&gt;</description></item><item><title>Re: Export to (Tab Delimited) Text File</title><link>https://www.infopathdev.com:443/forums/thread/29885.aspx</link><pubDate>Fri, 27 Jun 2008 17:45:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29885</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29885.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29885</wfw:commentRss><description>&lt;p&gt;What you are interested in is called WSH (Windows Script Host). &lt;/p&gt;
&lt;p&gt;Do a Google search for &amp;quot;wsh save text file&amp;quot;.&lt;/p&gt;</description></item><item><title>Re: Export to (Tab Delimited) Text File</title><link>https://www.infopathdev.com:443/forums/thread/29864.aspx</link><pubDate>Fri, 27 Jun 2008 10:43:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29864</guid><dc:creator>PJagger</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29864.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29864</wfw:commentRss><description>&lt;p&gt;Thanks Geg for you reply.&amp;nbsp; My form is full trust, however, I have not been successful in finding any help on the web.&amp;nbsp; Is anyone out there able to point me in the right direction?&lt;/p&gt;
&lt;p&gt;Regards - Phil&lt;/p&gt;</description></item><item><title>Re: Export to (Tab Delimited) Text File</title><link>https://www.infopathdev.com:443/forums/thread/29856.aspx</link><pubDate>Thu, 26 Jun 2008 22:52:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29856</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29856.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29856</wfw:commentRss><description>&lt;p&gt;What you are trying to do will probably require that your form be full trust. Then you will need to generate in code the content of the text file, access the file system via code, create a new text file, stuff your string into it, and close the file. You should be able to find information on the process of creating a new text file via javascript on the web.&lt;/p&gt;</description></item><item><title>Re: Export to (Tab Delimited) Text File</title><link>https://www.infopathdev.com:443/forums/thread/29802.aspx</link><pubDate>Thu, 26 Jun 2008 14:56:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29802</guid><dc:creator>chandrakanth</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29802.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29802</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;Can you please verify the below links. &lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/p/6963/25341.aspx#25341"&gt;http://www.infopathdev.com/forums/p/6963/25341.aspx#25341&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;&lt;a href="http://office.microsoft.com/en-us/infopath/HA102133461033.asp"&gt;http://office.microsoft.com/en-us/infopath/HA102133461033.asp&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Export to (Tab Delimited) Text File</title><link>https://www.infopathdev.com:443/forums/thread/29074.aspx</link><pubDate>Sat, 31 May 2008 00:56:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:29074</guid><dc:creator>PJagger</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/29074.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=29074</wfw:commentRss><description>&lt;p&gt;Hi all, &lt;/p&gt;
&lt;p&gt;Currently I am manually exporting data to Excel then saving the Excel import&amp;nbsp;as an (MS-DOS) text file.&amp;nbsp; Surely there is a way to export directly to the text file using code!&amp;nbsp; I am using jscript, however I am not averse to redesigning the form in another script if necessary.&lt;/p&gt;
&lt;p&gt;Any help would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;Regards Phil.&lt;/p&gt;</description></item></channel></rss>