how do I find the Site URL of a new infopath form

A

AndyS

Hi

I am using InfoPath 2007 on MOSS 2007. I have a form template with some C#
form code. The form is published as a content type.

When a new form is created from the toolbar of a library in which the form
is published I would like to be able to get the URL of this library.
Obviously InfoPath knows this location as when I click 'File > Save As' in a
new form it automatically it takes me to the library from the blank form was
created.

Can someone tell me how I can get this info from the InfoPath object model?

Thanks in advance

Andy
 
A

AndyS

Hi

This is just what I was looking for, more complicated than I epected though.

Thanks very much for your help.

Andy
 
A

AndyS

Looking through the article in detail the bit I was looking for was:

this.Template.Uri

which gives me what I need.

Thanks again

Andy
 
A

AndyS

Hi

Thanks for the info.

The form is filled out throught the client as I'm using user roles and other
features that aren't browser form compatible. From what I've found so far I
can't get the site URL from anywhere without it being a browser based form or
a list level content type.

Regards

Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top