Respondida Infopath form code : get folder in which a web-enabled form is stored

  • viernes, 11 de mayo de 2012 9:28
     
     

    Hello

    I have a web-enabled Infopath form stored in a document set.

    Is is possible, in c# code inside the form, to get the folder (document set) inside of which the actual form is stored ?

    Thanks

Todas las respuestas

  • viernes, 11 de mayo de 2012 10:45
     
     Respondida Tiene código

    Hi Mihnea,

    try to call following code in your form's loading event:

    string instanceUrl = e.InputParameters["XmlLocation"].ToString()
    This should return url of your xml form (but I didn't try it with document sets).