InfoPath form viewer webpart
MOSS 2007 now provides a great service, InfoPath Forms Services
"InfoPath Forms Services is a server technology that makes it possible for users to fill out InfoPath forms in a Web browser. Users don't have to have InfoPath installed on their computer to fill out this type of form, nor are they required to download anything extra from the Web. All they need is access to a browser, such as Windows Internet Explorer, Apple Safari, or Mozilla Firefox."
The published InfoPath forms are rendered and white blank page which most of the time will not follow your portal main theme, there are ways to integrate the form inside the portal
InfoPath form viewer webpart main features:
- render the InfoPath form in iframe
- ability to add html code to be rendered
- set query string keys to be appended to the form url and consumed by the form
Required configurations:
- Html code: html code that contain iframe with macro that will be replaced by the form URL
for example:
<div class="EForms">
<div class="EForms2">
<div class="EForms3">
<h5>form title</h5>
<div style ="text-align:center;margin-top:10px;">
<iframe src="%formurl%" width=99% scrolling=no frameborder=0 marginwidth=0 marginheight=0 height=600 >info path here</iframe>
</div>
</div>
</div>
</div>
- Form URL: the actual form url
for example:http://moss.dep/English/_layouts/FormServer.aspx?XsnLocation=http://moss.dep/English/Meeting%20Request%20English/Forms/template.xsn&SaveLocation=http%3A%2F%2Fmoss%2Edep%2FEnglish%2FMeeting%20Request%20English&Source=http%3A%2F%2Fmoss%2Edep%2FEnglish%2FMeeting%2520Request%2520English%2FForms%2FAllItems%2Easpx&DefaultItemOpen=1 - Form parameters: query string keys to be read comma separated
Package contains:
- InfoPathFormViewer.wsp: solution file for the webpart
- setupInfoPathFormViewer.bat: batch file to be executed from one web front end node (edit the batch file and replace http://londonmoss with your portal url)
you can download the package from here
if anyone have comments please send to me.
Hope you like it 
Posted on SharePoint Blogs
Del.icio.us |
Digg It |
Technorati |
Blinklist |
Furl |
reddit |
DotNetKicks
Read the complete post at http://www.sharepointblogs.com/marwantarek/archive/2008/02/25/infopath-form-viewer-webpart.aspx