How to open an InfoPath form on client machine from a list of forms in an asp.net webform.

M

moondaddy

I have a situation where the my client wont be using sharepoint and they
want to be able to select an infopath form from a list on an aspx page. How
can this be done?
 
B

Brisk

Any solution to this?

I would like to call a web service passing in the current
System.Environment.UserName and somehow launch an infopath form that
was retrieved from a sharepoint form library by the web service.
Any ideas?
 
S

ScottD[Interlink Group]

I'm not sure where you are calling the web service to initiate this process.
Are you saying you want to open an InfoPath form and pass the userName
property to a web service within infopath which would open another infopath
form? If that is the case, I'm not sure if you can do it.

One option to explore is to have your web service return a blank form for
the desired InfoPath form template. The Xml you are returning has the
embedded template and content type information in the document so when you
open it, the correct infopath form would be opened. You can do this via an
aspx page which contains a link. In the aspx page the form xml is retrieved
and returned as the http response. When IE sees the content type (which you
have to set to: "application/ms-infopath.xml"), it will try to open infopath
with the xml in the response from the server.
 

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