infopath

System.IO.IOException in C# when doing xsl transformation

Hi All, I have some code I hope someone may be able to help me with. What I'm trying to achieve is to convert an Infopaths XML based form into a Word 2007 document using an embedded XSLT file to do the transformation. Code: XPathNavigator nav = MainDataSource.CreateNavigator(); string fieldProject = nav.SelectSingleNode("//my:Project"...

Operation is not valid due to the current state of the object

I have wrote code for getting dropdown based value from Sharepoint list. But it give me error Operation is not valid due to the current state of the object when i set it to textbox. Please take look of my code. public void group2_Validating(object sender, XmlValidatingEventArgs e) { // Write your code here. ...

System.TypeInitializationException

I am writing tests to test Infopath Forms to open in Form Control, my test method is as [TestMethod] public void Validate_OpenInfopathInFormControl() { Helper.OpenForm(); //Other Code } I have written Helper class as public class Helper { public static void OpenForm() { //Code to Open Form } } Bu...

InfoPath: Submit to SharePoint List via XML with attachment

I have a working form that creates a new item in a SharePoint list using CAML XML document. I have read how to include attachments and I want to include the entire InfoPath form as an attachment on the List item. Can I still do this with the CAML XML by including the file as an encoded string? I'm having trouble setting up the CAML XM...

Access URL parameters from InfoPath form in XmlFormView

I have an InfoPath form with codebehind which is going to be hosted in an XmlFormView control on a page in a SharePoint 2007 site. I will not be able to use codebehind on the page which is hosting the XmlFormView. Is there any way to access the current HttpContext from the codebehind of the InfoPath form? Or is there any way to obtain...

Infopath 2007 and captcha

I looked around the web and didn't get any good answers. I've got a really basic form and looking to add a captcha control to it so the client doesn't get spammed (at least, not any more than usual). I'd like to use google's reCaptcha but I'm not really sure where to start with infopath. A template part might be a good start, but I'm ...

How to provide auto sugestions in browser enabled Infopath Forms ?

Hi, I am not sure if this is achievable. How can I provide auto suggestion as the user types in in a browser enabled infopath form ? This auto suggestion data should be fetched from a sharepoint list. Any ideas ? ...

InfoPath -how to disable Microsoft Office InfoPath Security Notice - "Microsoft has identified a potential security concern"

I have an InfoPath form template as a content type in a form library on SharePoint. The form has several data connections which on submit, save it back to a specific form library on SharePoint depending on how one field is filled out. After I added an additional data connection to receive information from SQL to a drop down control, ...

UseExplicit property in infopath with form based context

Hi everyone, I have a problem with my infopath form. The context, user of the site mustn't have acces to lists that provision infopath form field. Administrator should have acces to these lists. When i test the useExplicit property of udc file for impersonate the connection to the list i have no problem ( all my account are local accou...

Open a form from an InfoPath form with values from the first to the new

Hi, I have been working with InfoPath forms for the last two months or so, and I now have the following requirement: I have a form which is filled in by certain users, then sent to other users. The latter, after viewing the data on the form, have the possibility to either Accept & Reply or Reject. When they click on Accept & Reply, an...

What technologies are there for formatted, structured data input and output?

I am working on a project here that ingests internal resumes from people at my company, strips out the skills and relevant content from them and stores it in a database. This was all done using docx4j and Grails. This required the resumes to first be submitted via a template that formatted everything just right so that the ingest tool kn...

how to update infopath form library item field programatically ?

Hi, I was successfully able to update one of the fields (which was of type boolean) from infopath for library item using sharepoint object Model as if it was a list item. But for another field which is of type text, the same code just gets executed but does not change the field value !!!! I am using following code, which works for ...

If I move a form with VSTA code-behind into Visual Studio, will end users require the VSTO runtime?

I have an existing InfoPath 2007 form that has some code-behind developed with VSTA. It has been deployed to SharePoint as an administrator-approved form but is not browser based - the InfoPath client opens when users fill in a new form. I'd now like to follow How to: Migrate a Project Created in Visual Studio Tools for Applications to ...

Using ETL (non-MS) to get data from Infopath forms stored in Sharepoint 2007

I'm looking at the architecture for a DW project and there will be the need for some manual collection of [structured] data eg the monthly accounting results from a country manager where they need to complete a form and fill in half a dozen values etc. I really like the idea of using SP and InfoPath for this as it gives the security, th...

IE9: radio button selection fails with Infopath forms

After upgrading to IE9, InfoPath forms consistently fail on radio button selection. This occurrs even when using compatibility mode. ...

Hiow to switch Infopath view in XMLFormView Webpart when the Web Part loads ?

Hi, I am using the code given at following link : How To: Display browser enabled InfoPath forms in a web part supporting connections in my custom web part. Does any one know how to switch the Infopath view to a specific View when the web part loads ? Thanks, Nikhil ...

How does Response.ContentType work?

I am downloading an xml string from ASP.Net and want it to open in MS Office Infopath. I set the ContentType to "application/ms-infopath.xml" (not sure where I got that from). On some machines it is fine, on others the xml opens in the browser, or in Visual Studio or some other xml editor, even though Infopath is present. Who keeps th...

Missing Infopath Content Type in SharePoint Form Library

I've had a strange issue come up. We have a Form Library in SharePoint with a number of InfoPath forms. When a user creates a new InfoPath form using the "New" drop down menu and saves it back to the form library. The content type of the form and the document are not associated. I can fix the document type, open the form back up, save...

how to Retrieve multiple values from Contact Selector in infopath form without code?

I need to get all the accountIDs selected in a contact selector control in my infopath form? Is there a way to do it without program? I heard there is a way to read repeating group values in infopath but could not get any concrete information? e.g. is it possible using a rule tht i can concatenate all the accountIds selected in the cont...

Why is the namespace reference being lost when copying XML nodes?

I have an XML document (an InfoPath form) that looks similar to this: <my:ClientMaintenance xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-07-06T07:04:54"&gt; <my:Payments> </my:Payments> <my:Payment> <my:Amount></my:Amount> <!-- Several other nodes --> </my:Payment> </my:ClientMai...