Search - InfoPath Dev Sign in | Join | Help InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads Search More Search Options Page 1 of 1 (7 items) User Context - Windows vs. SharePoint I am developing an InfoPath 2010 template with compatibility for InfoPath 2007 and published to a SharePoint Server 2010 form library as a thick client template (cf. browser based). The template also runs code behind (VB), so is fully trusted and signed with a certificate. The problem I am facing is trying to determine the SharePoint user who ... Posted to SharePoint Integration (Forum) by mstaples709 on 05-26-2012 Re: Casting from XmlDocument to XDocument Hi Jimmy, I am trying to use the replaceChild method, so need to pass it 2 IXMLDOMNode parameters (newChild, oldChild). The nodes from the XmlDocument would be the newChild and the existing nodes in the XDocument (i.e. thisXDocument) are the oldChild. So, really, I need a way to get at the XmlDocument nodes and cast ... Posted to Code (Forum) by mstaples709 on 11-20-2010 Casting from XmlDocument to XDocument Hello, I am developing an InfoPath 2003 template with C# code behind and am trying to cast from System.Xml.XmlDocument() to Microsoft.Office.Interop.InfoPath.Semitrust.XDocument(). So far, I have had no luck finding any examples of how to do this. I believe someone wrote a post about casting to System.Xml.Linq.XDocument(), ... Posted to Code (Forum) by mstaples709 on 11-19-2010 Re: Help with OnVersionUpgrade event - InfoPath 2003 / C# Thanks, Jimmy. This code works great for appending a child node to the selected parent node. The problem I have now is trying to replace or remove a child node. Basically, what I am doing is renaming an element from "/ClientInfo/Title" to "/ClientInfo/ClientTitle". I have tried the replaceChild ... Posted to Code (Forum) by mstaples709 on 11-17-2009 Re: Help with OnVersionUpgrade event - InfoPath 2003 / C# Thanks, Jimmy. This should work fine in InfoPath 2007 and I will let you know, once I have tested it. Would you happen know what the equivalent C# code would be, using the InfoPath 2003 object model (i.e. thisXDocument)? I am having some difficulty figuring this out. Posted to Code (Forum) by mstaples709 on 11-16-2009 Re: Help with OnVersionUpgrade event - InfoPath 2003 / C# Sure thing...samples in JScript and VB.NET included below. JScript (taken from http://msdn.microsoft.com/en-us/library/aa662354%28office.11%29.aspx):function XDocument::OnVersionUpgrade(eventObj) { if (!XDocument.DOM.selectSingleNode("/Customers/CustomerInfo/EmailAddress")) { try { // Create the ... Posted to Code (Forum) by mstaples709 on 11-16-2009 Help with OnVersionUpgrade event - InfoPath 2003 / C# Hello all, I have a client using an InfoPath 2003 managed code solution (C#). Recently, we needed to make a change to the XML schema serving as the Main data source. Specifically, we changed a single tag's name from <Title/> to <ClientTitle/>. This change needs to be pushed out to their Production environment ... Posted to Code (Forum) by mstaples709 on 11-16-2009 Page 1 of 1 (7 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.