infopath

Does InfoPath 2013 support Visual Studio 2013?

断了今生、忘了曾经 提交于 2019-12-07 02:47:09
问题 I am trying to develop custom code for an InfoPath 2013 form. I have Visual Studio 2013 Professional installed, but when trying to edit code I get the following message: The following external components are required to edit your form code. Please install them and try again. Microsoft Visual Studio 2012 Visual Studio C# Support Microsoft Visual Studio Tools for Applications 2012 C# support is installed, along with Visual Studio Tools for Applications 2012. Does InfoPath 2013 just not support

InfoPath - Cannot open, Form definition (.xsf) contains errors

末鹿安然 提交于 2019-12-06 11:48:54
I have somehow managed to break my infopath form :( When I try to open it (both preview mode and design mode) I get the following error: InfoPath cannot open the following form D:\infopath\formname.xsn. The form definition (.xsf) file contains errors. When I click on more details I get this: The form definition (.xsf) file contains elements, attributes, or structures that are not valid. Error details: The keyref 'ruleSet_5' does not resolve to a key for the Identity Constraint '{http://schemas.microsoft.com/office/infopath/2003/solutionDefinition}ruleset_name_key'. Line 232, Position 3 </xsf

How to debug Infopath 2010 web form?

ⅰ亾dé卋堺 提交于 2019-12-06 05:22:14
Well, in visual studio 2008 we were able to create infopath 2007 web form project and after that attach to iis process to debug infopath web form. In visual studio 2010 there is not infopath project and we can use only vsto and cant attach to iis process. So, how to debug Infopath 2010 web form? - is it possible? Debugging in InfoPath2010 is a bit tricky.You need to configure your VSTO Advanced Build option to store debug info and then open using VS2010.Attach the w3wp.exe processes using VS2010.Then you should be able to debug.For a complete steps ,check out my blog post How to debug

XPath: Default to 'Node A', select 'Node B' instead if 'Node B' is not empty

风流意气都作罢 提交于 2019-12-05 14:10:15
问题 I need to create an XPath expression that does the following: Returns the element inside of 'NodeA' by default Returns the element inside of 'NodeB' if it is not empty. Here is some sample XML so that my target structure can be clearly seen (I am using MS InfoPath): <?xml version="1.0" encoding="UTF-8"?><?mso-infoPathSolution solutionVersion="1.0.0.10" productVersion="14.0.0" PIVersion="1.0.0.0" href="file:///C:\Documents%20and%20Settings\Chris\Local%20Settings\Application%20Data\Microsoft

System.TypeInitializationException

拈花ヽ惹草 提交于 2019-12-05 11:28:43
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 } } But everytime I execute this code, this gives me: Test method InfoPathTest.TestAPI.Validate_OpenInfopathInFormControl threw exception: System.TypeInitializationException: The type initializer for 'InfoPathTest.Helpers.Helper' threw an exception. ---> System.NullReferenceException: Object reference not

Does InfoPath 2013 support Visual Studio 2013?

╄→尐↘猪︶ㄣ 提交于 2019-12-05 04:57:38
I am trying to develop custom code for an InfoPath 2013 form. I have Visual Studio 2013 Professional installed, but when trying to edit code I get the following message: The following external components are required to edit your form code. Please install them and try again. Microsoft Visual Studio 2012 Visual Studio C# Support Microsoft Visual Studio Tools for Applications 2012 C# support is installed, along with Visual Studio Tools for Applications 2012. Does InfoPath 2013 just not support VS2013? Unfortunately No MS has really been making some bad decisions lately Firstly VS2013 was

XPath: Default to 'Node A', select 'Node B' instead if 'Node B' is not empty

隐身守侯 提交于 2019-12-04 00:42:44
I need to create an XPath expression that does the following: Returns the element inside of 'NodeA' by default Returns the element inside of 'NodeB' if it is not empty. Here is some sample XML so that my target structure can be clearly seen (I am using MS InfoPath): <?xml version="1.0" encoding="UTF-8"?><?mso-infoPathSolution solutionVersion="1.0.0.10" productVersion="14.0.0" PIVersion="1.0.0.0" href="file:///C:\Documents%20and%20Settings\Chris\Local%20Settings\Application%20Data\Microsoft\InfoPath\Designer3\9016384cab6148f6\manifest.xsf" ?><?mso-application progid="InfoPath.Document"

Sharepoint Conditional fields in Edit.aspx

匆匆过客 提交于 2019-12-03 21:32:30
I would like to display certain meta data fields in the edit form based on the value of a fields. Example: Users upload a document to the Doclib to be approved by there manager. They are allowed to change the meta data Name,Case No, Location until the item is approved by the manager. Once the item is approved I would like to set Name and Case Number to read only. What is the best way to meet this requirement? If approved = yes set Name and Case No = Read only Else do nothing. I have tried this method for about 5 hours. I believed this may be different for ModerationStatus. Might require

“The ':' character, hexadecimal value 0x3A, cannot be included in a name”

吃可爱长大的小学妹 提交于 2019-12-01 17:14:24
I have a code which will read some xml file(s). I tried different ways to solve this problem, but couldn't. Also I tried to code like this: Namespace my = "http://schemas.microsoft.com/office/infopath/2003/myXSD/2011-01-11T08:31:30"; XElement myEgitimBilgileri = XDocument.Load(@"C:\25036077.xml").Element("my:"+ "Egitim_Bilgileri"); But all the time the same mistake. Here is the original: private void button2_Click(object sender, EventArgs e) { XElement myEgitimBilgileri = XDocument.Load(@"C:\25036077.xml").Element("my:Egitim_Bilgileri"); if (myEgitimBilgileri != null) { foreach (XElement

How to programmatically create an InfoPath form from an InfoPath XSN template

两盒软妹~` 提交于 2019-12-01 10:27:15
I need a solution that creates an InfoPath instance form from an XSN template that exists on a SharePoint server, I am using this approach but this extracts template files on temp directory of server that we may not have write permission to. Is there better solution for this? Daniel Halan You just change the CAB-library, to one that can extract the template file to memory, as this one, Minimum C# code to extract from .CAB archives or InfoPath XSN files, in memory And then call, myCab.ExtractFile("template.xml", out buffer, out bufferLen); the complete code would look something like private