.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Open existing form with the InfoPath Form Web Part

Posted By:      Posted Date: October 26, 2010    Points: 0   Category :SharePoint

Hello.  I have a custom .aspx page with a single InfoPath Form Web Part that is connected to a form library.  I can open up that form just fine and submit a new form to the library.  I can also open that existing form from the library.  However,  I want to provide the users a way to open existing forms using another custom page with the InfoPath Form Web Part.  

A little background... I build a custom web part that populates a sharepoint gridview (SPGridView) with the existing forms from the forms library.  I can pass in the name of the file which allows the form to be open using the InfoPath Web Form in a browser.  That works nicely, but the users would like to open up the form using the InfoPath Form Web Part also.  Is there a way to pass a parameter (e.g. file name) to a page that contains the IPFWP that will open the form in the web part?

<SharePoint:SPGridView ID="spGridView" runat="server"  

View Complete Post

More Related Resource Links

Anonymous users submitting Infopath forms via InfoPath Form Web Part

Is there a way for anonymous users in a public facing site to submit InfoPath List Forms via an InfoPath Form Web Part? Currently when I go to a page with the InfoPath Form web part configured as an anonymous users I get the following error message: Error loading the form A form template (.xsn) file cannot be accessed. You may not have the required permissions to open the file The list allows anonymous users permissions to add and view items When logged in the form works fine

InfoPath form web part stops the close on submit

I have successfully published HTML browser enabled InfoPath 2010 forms to form libraries in SharePoint 2010. Users can navigate to the libraries and click new docuiment and fill out and submit forms, and the behavior of submit is as programmed in the form namely I have a concat rule for form name and chose action after submit to close the form with a success message. The problem I am seeing is a little abstract so stay with me while I explain. I'm hosting a number links to web part pages with the infopath web part on them. I use a links web part to aggrigate about 16 forms links on a single page. Users can successfully click on a link, are migrated to the web part page that has the form displayed in the infopath web part and all is well till they click the submit (on the ribbon, or custom button or whatever) The form does successfully get saved into the form library, but the form does not close. I need to make this process very simple for users without any training expended on the process. I'd like to shift focus to the previous web page, or close the form or something dramatic visually to show the user that they have completed the form fill out, and allow them to fill another form. Codebehind examples gratefully accepted! /Robin    

Expense Reimbursement Approval template cant open infopath form

hi, i just created a site using the template Expense Reimbursement Approval. but when i click on the Expense link and click new it try to open infopath form but it gives me this error: The form template was created with a newer version of InfoPath. This form template was created by InfoPath version 12.0.0. do i have to use infopath 2007 to open this form? thnx

Can i Start Workflow on Infopath form open?

HI, I Have a Scenario where when i open a Infopath 2010 form in Sharepoint 2010 as XML Form View Webpart, Custom workflow must be enabled, can i do this? If Yes, Please tell me steps to configure or code for starting a workflow. Thanks you all in Advance

Problem to open infopath form : The file cannot be opened because it is not a valid InfoPath form

Hi i have a winform app which host of infopath forms. form templates and data stores in database and when user want to open/edit an existing infopath form data, it must be extract from database, save on disk and then open it to display it in formControl. my problem is that when i open form data, after it has been extracted on disk, i got this error : InfoPath cannot open the following file: C:\Users\Hamed\Documents\Visual Studio 2008\Projects\InfopathFormTest2\InfopathFormTest2\bin\Debug\d00d73e8-cf5c-4b12-b9a6-591c4ade83aa.xml. The file cannot be opened because it is not a valid InfoPath form.  The processing instruction in the file is missing or invalid. here is my code : this._fullPath = System.IO.Path.Combine(Application.StartupPath, this._dataRow.FormID.ToString() + ".xml"); this._templatePath = System.IO.Path.Combine(Application.StartupPath, this._templateRow.TemplateID.ToString() + ".xsn");if (HelperClass.ExtractToDisc(_fullPath, ASCIIEncoding.Unicode.GetBytes(this._dataRow.FormContent))) { this.formControl1.Open(_fullPath); this.txtFormName.Text = this._dataRow.FormName; } where is my problem and how to solve this ? thanks in advancehttp://www.codeproject.com/KB/codegen/DatabaseHelper.aspx

Form that is part of workflow wont open in form library


I am having an issue with my form. I have created a sharepoint sequential workflow using visual studio and as a task the user has to fill out an infopath form. When the form is submitted as part of the workflow is then saved to a form library. My issue is when I try to open the form in the form library I get the message "The form has been closed". 

I have check the Central Admin/Manage Form Templates and my form is here, status="Ready" and workflow enabled. But my form doesnt exist in the sitecollection/FormTemplate library. So I believe that when I try to open the form in the browser that template cant be found. Why I say that is when I open the form with the info path client, I get the message "The form was created with a new version of the form template. InfoPath cannot find the new version. Do you want to open with an older one" 
If a infopath form is part of a workflow and it be saved in a form library and then open, if so how?
Am I publishing the form incorrectly - I publish to network location. Then install my feature.
Do I need to associated the form template with the form library or should the feature installation take care of this?


- FormTemplate Library doesnt appear in site settings, I

InfoPath cannot open the selected form


I have been working on an InfoPath 2007 form for a week. It is actually a form I started from scratch to replace an existing form that had some weird stability issues for which there was no hope of a fix. The new form was working and previewing great until this morning when, for no apparant reason, it decided to start giving me the infamous "InfoPath cannot open the selected form" error when run from Visual Studio.

I clicked the "Was this information helpful?" link and responded "No", so I am sure that Microsoft has its best people scrambling for a fix; however, in the meantime, has anyone ever actually successfully fixed this error without starting over when clearing the cache (http://msdn.itags.org/microsoft-office/78856/) doesn't help?

Can a filtered web part open a broswer based IP form?

MOSS Enterprise 2007, IP designed to be broswer based.  Primary naviagtion to IP form is via a web part page (page viewer).  This works well for "new" forms, but any attempt to "edit" an existing XML from the library opens the form in a new window without any other web parts.  Is there a method of building a web part page that will "load" an existing XML file?

How to add Quick AccesToolbar or Ribbon or TaskPane in browser when open InfoPath web browser form?



I would like to add my own ToolBar or Ribbon in browser when user open web browser form which was designed in InfoPath2010. My be a smth look like TaskPane will the best way?(I know how to add it in InfoPath, but how to show it in browser?) I want to show a list of views, so users will have an opportunity to navigate between form views.

How is it possible to do ?

Intigrate E-mail part with my infopath form

Hi I am using info path 2010 and I have the scenario that once a job seeker fill the form and submit to sharepoint document library after that when admin open it and check it he/she can directly send an Email from that I have the code but I want to use the templates so if you have any idea please help me 

How can I open an InfoPath Form in a modal Windows or Popup from inside another InfoPath Form


Hey guys, I need some help, please. How can I open, in a modal windows or pop up, an InfoPath form from inside another InfoPath form using a button or maybe a link. I need to be able to have both forms on the screen.

How can I do that? Can I use jQuery?

Help, please.

Thanks in advanced!

Intigrate E-mail part with my infopath form

Hi I am using info path 2010 and I have the scenario that once a job seeker fill the form and submit to sharepoint document library after that when admin open it and check it he/she can directly send an Email from that I have the code but I want to use the templates so if you have any idea please help me 

Published InfoPath Form will not open from AAM URL


We have a couple InfoPath Forms that work great when accessed from the Local Intranet.  However, after configuring the site for Internet access as well, using Alternate Access Mappings, the InfoPath Form will not load.

For example, when attempting to create a new instance of one of the Forms from a Library where the Form is setup as a Content Type, it forwards to an address using the Local Intranet URL - obviously not accessible from outside the network.

ie. Secure "https://site.domain.com/" site is connected to from the internet, but when trying to create a new Form, it forwards to a "http://server/" address and results in a Page Cannot be Displayed error.

Am I missing something in the AAM, or what could be causing this behavior?

Cant open an infopath form


at our test serevr we are  usng sharepoint server 2007 standard,tried to update it to enterprise

Created new form library,but when I click new,message displayed 'This feature requires Microsoft Internet Explorer 6.0 or later and a Windows Sharepoint Services-compatible XML editor such as Microsoft Office InfoPath."

Also I have another question,If I updated our productions erver from standard to enterprise,must I purchase license for every user who will use sharepoint,When we installed sharepoint we installed stand alone?

Cannot Open InfoPath 2007 form on Windows "XP


Hello There,

I am assisting a new referral i just got and he has an issue opening a specific created InfoPath 2007 form on his Windows "XP machine.  

This is the Error Message that comes up when you try to open the form:

InfoPath cannot open the following file c:\documents and settings\username\desktop\load form.xml

The following form template for the form cannot be found

Please any work around or assistance on resolving this issue will be greatly appreciated. Thank you.




Nana Richardson

The Web Part cannot find an InfoPath form in the specified location.



I had published an infopath form which is having managed code and i created a webpart page and used sharepoint 2010 infopath form webpart.

when i am logging in as administrator then i am able to browse the form(i can fill n submit), if i log on as any other user it is giving me the below message.

 The Web Part cannot find an InfoPath form in the specified location. Either the location does not have an InfoPath form associated with it or it is on a different site collection. Modify the Web Part Properties and select a list or library on the current site.

InfoPath 2007: Designing Form Templates With The New Features Of InfoPath


InfoPath 2007 is an XML forms designer and editor, and a fully featured and integrated member of the Office family. This article takes a sneak peek at some of its new features.

Scott Roberts and Hagen Green

MSDN Magazine August 2006

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend