Open new form - InfoPath Dev
in

InfoPath Dev

Open new form

Last post 02-04-2006 01:10 AM by Patrick Halstead. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-03-2006 01:58 AM

    Open new form

    Hi and another one.

    I am using managed code and would like to open a new form after a button is clicked. I would like to do it programmatically cos may be i also want to do that from some non infopath pages where I cannot use the button rules.
    Possible ? Some ideas ?

    Listen to Motörhead cos they play Rock'n Roll :)
    Listen to Motörhead cos they play Rock'n Roll :)
  • 02-03-2006 02:29 AM In reply to

    hi,

    If you want to launch an infopath form :
    thisApplication.XDocuments.NewFromSolution(@"C:\RC\AV.xsn");

    a variant for copy a child node in this new form
    XDocument oXdNewForm = thisApplication.XDocuments.NewFromSolution(@"C:\RC\AV.xsn");
    IXMLDOMNode Old = oXdNewForm.DOM.selectSingleNode("/AV");
    IXMLDOMDocument2 res = (IXMLDOMDocument2)thisXDocument.CreateDOM();
    res.loadXML(Res.OuterXml);
    Old.parentNode.replaceChild(res.selectSingleNode("/AV"), Old);

    ++

    Thierry
    Infopath 2007, Langage: C#2.0 (Modèle Objet 2003)
    merci de lire ceci
  • 02-04-2006 01:10 AM In reply to

    Greg has some HowTo on this also. Look for forms communication. Some good example there.

    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.