Newer Version Exception - InfoPath Dev
in

InfoPath Dev

Newer Version Exception

Last post 01-26-2007 11:08 PM by Patrick Halstead. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-25-2007 02:16 AM

    • lyntonS
    • Not Ranked
    • Joined on 01-09-2007
    • South Africa
    • Posts 12

    Newer Version Exception

    Please can someone help me with the following exception. I am trying to pass parameter from one form to another using XPath.

    InfoPath cannot create a new, blank form.
    InfoPath cannot open the form. To fix this problem, contact your system administrator.
    Form template: file:///C:\Program%20Files\bSOLVe_LS_Publish\ParametersReceived.xsn
    The form is a newer version than the current form template.

    Heres my code:

    public void btnSubmit_Clicked(object sender, ClickedEventArgs e)
    {
    // XPathDocument class provides fast, read-only access to the contents of an XML document using XPath
    // XmlDocument class is an editable in-memory representation of an XML document
    XPathDocument document = new XPathDocument(@"C:\Program Files\bSOLVe_LS_Publish\PassingParameters\bin\template.xml");

    // Creates Navigator: XPathNavigator class provides a set of methods used to insert sibling, child, and attribute nodes in an XML document
    XPathNavigator navigator = document.CreateNavigator();

    // Provides a typed class that represents a compiled XPath expression
    XPathExpression myExp = navigator.Compile("/my:myFields/my:txtInput");

    // Creates a new form using the specified form template with data specified by an XPathNavigator object.
    XmlForm newDocument = this.Application.XmlForms.NewFromFormTemplate(@"C:\Program Files\bSOLVe_LS_Publish\ParametersReceived.xsn", navigator);
    }
  • 01-26-2007 11:08 PM In reply to

    Re: Newer Version Exception

    Hi Lynton,
    I responded to this thread here:http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=4240
    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.