R – InfoPath forms viewer web part

infopathinfopath-forms-servicessharepointweb-parts

I'd like to write a SharePoint web part that would display InfoPath forms and have some additional functionallity. Does anyone know how to implement the "forms display" part of the web part???

Thanks.

Best Solution

You use the XmlFormView control in Microsoft.Office.InfoPath.Server.Controls. The control has all the properties you need to display the right form, such as:

XmlFormView.XsnLocation
XmlFormView.XmlLocation
XmlFormView.SaveLocation

This should help: Hosting the InfoPath 2007 Form Editing Environment in a Custom Web Form

Related Question