views:

29

answers:

0

Hi,

I am developing an InfoPath form and publishing it to the Forms Library on SharePoint. I am also using VSTA to write some C# code for the form. How can i get the Forms Library Path programmatically from which the the form is opened from? So for example if the form is saved at http://servername/sitename/FormsLib1/Form1 then, then in the form's code in VSTA how can I access this path?

Also If a new form is created from the Forms Library on SharePoint and then when trying to save it, the Saveas dialog box already knows the Forms library path to save it to. How can I access this path programmatically in form's code in VSTA?

Thanks Hitesh

related questions