How to open Exist InfoPath Form? - InfoPath Dev
in

InfoPath Dev

How to open Exist InfoPath Form?

Last post 07-19-2007 12:20 PM by Shiraz Cupala. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 07-08-2007 06:55 AM

    How to open Exist InfoPath Form?

    I have an InfoPath form, I want to open from it's code other exist form that located on a SharePoint Libreary Forms, How can I (by code) search for exist form in the library (by parametr which is on of the list culomns) and to open the form (if it find it)???
  • 07-09-2007 12:01 PM In reply to

    Re: How to open Exist InfoPath Form?

    Hi, I don't quite understand your question. Are you trying to launch a specific form that is stored in a specific library or are you using IP Form Server and trying to select a specific form in a list of forms in a library of templates?
    Shiraz Cupala / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 07-09-2007 10:38 PM In reply to

    Re: How to open Exist InfoPath Form?

    I will Explain, I want 2 different things:

    1) I want in my code to access to specific SharePoint libraryForms, and to open specific form that in this library(list).  (I will search it by specific parameter).

    2) I want in my code to open NEW INSTANCE of form witch stored in a SP Library Forms (Access the template)

     

    My form also stored in SP library Forms but not same library as the form that I want to open!

  • 07-19-2007 12:20 PM In reply to

    Re: How to open Exist InfoPath Form?

    Hi,

    For creating the new instance of a form you can use the NewFromSolution method and pass the URL to the XSN in the shareoint library. The easiest way to get the XSN URL is to take any XML file created from that XSN and look at it in notepad. At the top you'll find an href=http://.../.../template.xsn and that's the URL to the XSN template.

    For your first item you'll have to figure out how to constitute the URL properly to open the correct file but you must use the URL to the filename to open the file. Then just use the Open method.

    Thanks, Shiraz

    Shiraz Cupala / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.