Rendering a Infopath form published to Sharepoint in a webpart

R

Ram

hi,

I would like to create a custom sharepoint webpart and show the infopath
form that is published to sharepoint forms library.

I have tried using XMLFormView webpart and also Infopath FormViewer WebPart.
But these webparts are limiting certain capabilities which i would like to
address.

Let me give a simple scenario,

I have a ASPX Page with two webpart zones (named as left and right) and have
loaded the ASPX Page into sharepoint as a Feature.

Next i am created a Webpart with a treeview control populated with data from
a sharepoint list.

I have added the above webpart to the LEFT side of the ASPX page in the left
webpart zone.

What i require is when a click on the node, i would like to pick up the ID
of the selected node and pass it as a parameter to the RIGHT side webpart
that would show the details of the node in a Infopath Form being loaded in
the Right Side WebPart on the ASPX Page.


The challenge that i am facing is how do i render and show the Infopath form
from within a Webpart. Which namespace should i use to code the display of
infopath form and what are the properties.

Following are links that i had used as reference.
http://www.sharepointblogs.com/marwantarek/archive/2008/02/25/infopath-form-viewer-webpart.aspx

http://www.sharepointblogs.com/marwantarek/archive/2008/03/03/13094.aspx#13466

http://blogs.msdn.com/pranab/archiv...ser-based-infopath-forms-and-work-around.aspx

http://sharepointsearch.com/cs/blog.../2008/02/25/infopath-form-viewer-webpart.aspx


http://msdn2.microsoft.com/en-us/library/microsoft.office.infopath.server.controls.xmlformview.aspx

Regards
Ram
 
C

Clay Fox

I work with the guy who actually coded most of IPFS while at Microsoft. I
have seen him actually make a task pane for web based forms that interacts
with the form. This interactivity between frames would be very similar to
what you wish to do.

Send me an email and I can tell you how to get in contact with him.
http://www.infopathdev.com/members/clayfox.aspx
 
M

Mike Parris

Hi,

I tried this, it does what you are asking for.

I have not tried the connection from one web part zone to another, but it
works within the same zone. To cross zones you may need to inherit from the
SharePoint web part, rather than the WebControls one

Also, I found that some of the form formatting was lost. Specifically
control sizes. I have yet to resolve this.

Mike Parris
 

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