<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Code for open infopath form</title><link>https://www.infopathdev.com:443/forums/thread/7035.aspx</link><pubDate>Mon, 27 Jun 2005 08:43:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:7035</guid><dc:creator>ScottAtRVC</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/7035.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=7035</wfw:commentRss><description>Hi.  Have you tried: oXDocument.SaveAs(NewPath);&lt;br /&gt;cheers.  Scott.</description></item><item><title>Code for open infopath form</title><link>https://www.infopathdev.com:443/forums/thread/4737.aspx</link><pubDate>Sun, 26 Jun 2005 14:28:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4737</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4737.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=4737</wfw:commentRss><description>I have a InfoPath template ("TestForm.xsn") located on my server&lt;br /&gt;&lt;br /&gt;I have a HTML page that should create an instance of the form, save it in a given location and open it.&lt;br /&gt;&lt;br /&gt;I have this code for while:&lt;br /&gt;function clickToOpen()&lt;br /&gt;{		&lt;br /&gt;  var ranNum= Math.round(Math.random()*25555);	&lt;br /&gt;  var Newpath="\\\\MyServer\\InfoPathSave\\"+ ranNum +".xml"&lt;br /&gt;  var template ="\\\\MyServer\\InfoPath\\TestForm.xsn"  &lt;br /&gt;  //Start the application&lt;br /&gt;  var oApp = new ActiveXObject("InfoPath.Application");&lt;br /&gt;  var oXDocumentCollection = oApp.XDocuments;&lt;br /&gt;  var oXDocument = oXDocumentCollection.NewFromSolution(template);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;What should I add to this function code for saving the new instance in the given location ("NewPath")???</description></item></channel></rss>