<?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: CSV export via Jscript</title><link>https://www.infopathdev.com:443/forums/thread/4036.aspx</link><pubDate>Wed, 21 Feb 2007 22:03:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4036</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4036.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4036</wfw:commentRss><description>Glad to have helped! Take care!</description></item><item><title>Re: CSV export via Jscript</title><link>https://www.infopathdev.com:443/forums/thread/4035.aspx</link><pubDate>Wed, 21 Feb 2007 00:27:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4035</guid><dc:creator>Ragnar_7</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4035.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4035</wfw:commentRss><description>Hi Greg, &lt;br /&gt;&lt;br /&gt;thanks a lot for the hint. I feel pretty stupid now, seeing as I should have really picked that up myself. I copied the code from the JScript reference in the IP help, but must have muddled up the paragraphs with&lt;br /&gt;the VBScript example, which uses "normal" paths ala "c:\dev\foo"&lt;br /&gt;&lt;br /&gt;cheers,&lt;br /&gt;Ben</description></item><item><title>Re: CSV export via Jscript</title><link>https://www.infopathdev.com:443/forums/thread/4034.aspx</link><pubDate>Tue, 20 Feb 2007 17:27:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4034</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4034.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4034</wfw:commentRss><description>Have you verified that your code works outside of InfoPath?&lt;br /&gt;&lt;br /&gt;One thought is that you might need to escape your backslash character... i.e.:&lt;br /&gt;&lt;br /&gt;tf = fso.CreateTextFile("c:\\dev\\test.txt", true);&lt;br /&gt;&lt;br /&gt;Not sure if that will make a difference, but as the error is complaining about the filename, it seems a likely possibility.</description></item><item><title>Re: CSV export via Jscript</title><link>https://www.infopathdev.com:443/forums/thread/4033.aspx</link><pubDate>Tue, 20 Feb 2007 00:38:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4033</guid><dc:creator>Ragnar_7</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4033.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4033</wfw:commentRss><description>Thanks for the quick reply Greg.&lt;br /&gt;&lt;br /&gt;I have set the form to full-trust and it is signed as well, yet&lt;br /&gt;the script still doesn't want to play along. &lt;br /&gt;&lt;br /&gt;Any other ideas as to what the problem might be, or where I might&lt;br /&gt;have gone wrong?</description></item><item><title>Re: CSV export via Jscript</title><link>https://www.infopathdev.com:443/forums/thread/4032.aspx</link><pubDate>Mon, 19 Feb 2007 17:44:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4032</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4032.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=4032</wfw:commentRss><description>What you are attempting to do requires full-trust security. Have you set your form to full-trust and either signed it or used regform.exe to make an installable .msi for your form?</description></item><item><title>CSV export via Jscript</title><link>https://www.infopathdev.com:443/forums/thread/1858.aspx</link><pubDate>Mon, 19 Feb 2007 08:27:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1858</guid><dc:creator>Ragnar_7</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1858.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1858</wfw:commentRss><description>Hi guys,&lt;br /&gt;&lt;br /&gt;I haven't been using Infopath for very long (72h max), but seem to have exhausted my patience and can't seem to find a proper answer to my question in the various .CMHs, MSDN and forums.&lt;br /&gt;&lt;br /&gt;I am editing a an Infopath for that uses a repeating table as an editing log (ie. Film, Start, End, Duration etc.)&lt;br /&gt;&lt;br /&gt;Now accessing the info with Jscript was not that much of an issue but it seems that it's not possible to export said information (automatically) in Infopath.&lt;br /&gt;&lt;br /&gt;I have attached the code for the export button below (strOutput usually holds a lot more lines), but evertime I am press export when running the form i get the following error:&lt;br /&gt;&lt;br /&gt;"Bad file name or number"&lt;br /&gt;&lt;br /&gt;It seems that the Jscript can't open the file for writing. I have&lt;br /&gt;tried many different other locations and checked that the file is definately in place.&lt;br /&gt;&lt;br /&gt;Really out of ideas atm and I can understand why something so simple would be a problem in Infopath.&lt;br /&gt;&lt;br /&gt;Any help would be very much appreciated.&lt;br /&gt;&lt;br /&gt;function btnExport::OnClick(eventObj)&lt;br /&gt;{&lt;br /&gt;  var strOutput = "Sometext\tSome more text\tThe end\n";  &lt;br /&gt;&lt;br /&gt;  var fso, tf;&lt;br /&gt;  fso = new ActiveXObject("Scripting.FileSystemObject");&lt;br /&gt;  tf = fso.CreateTextFile("c:\dev\test.txt", true);&lt;br /&gt;  tf.Write (strOutput);&lt;br /&gt;  tf.Close();&lt;br /&gt;}</description></item></channel></rss>