Code for open infopath form - InfoPath Dev
in

InfoPath Dev

Code for open infopath form

Last post 06-27-2005 01:43 AM by ScottAtRVC. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-26-2005 07:28 AM

    Code for open infopath form

    I have a InfoPath template ("TestForm.xsn") located on my server

    I have a HTML page that should create an instance of the form, save it in a given location and open it.

    I have this code for while:
    function clickToOpen()
    {
    var ranNum= Math.round(Math.random()*25555);
    var Newpath="\\\\MyServer\\InfoPathSave\\"+ ranNum +".xml"
    var template ="\\\\MyServer\\InfoPath\\TestForm.xsn"
    //Start the application
    var oApp = new ActiveXObject("InfoPath.Application");
    var oXDocumentCollection = oApp.XDocuments;
    var oXDocument = oXDocumentCollection.NewFromSolution(template);
    }

    What should I add to this function code for saving the new instance in the given location ("NewPath")???
  • 06-27-2005 01:43 AM In reply to

    Re: Code for open infopath form

    Hi. Have you tried: oXDocument.SaveAs(NewPath);
    cheers. Scott.
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.