Filling NodeValues on NewFromSolution call - InfoPath Dev
in

InfoPath Dev

Filling NodeValues on NewFromSolution call

Last post 08-25-2005 04:53 PM by Shanthi Reddy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-25-2005 07:56 AM

    Filling NodeValues on NewFromSolution call

    I need a jumstart. Im using the following code in my vb.net application to create a form from a template

    Dim objXApp As New Microsoft.Office.Interop.InfoPath.Application
    objXApp.XDocuments.NewFromSolution(Application.StartupPath & "\templates\" & filename)

    and then i do the following command to save the new form to its proper location in my application

    objXApp.ActiveWindow.XDocument.SaveAs(Application.StartupPath & "\" & pform & "\" & caseid & "\" & caseid & "-" & abbr & "-" & repid & ".xml")

    How can i from my vb.net app, populate fields in my newly created form?
    or
    How can I (from managed code) get the file name of the form itself during onLoad.

    Either one of these will allow me to populate further info on the form from my access db based on the form knowing what its caseid is.

    Thanks for the Help















  • 08-25-2005 04:53 PM In reply to

    Re: Filling NodeValues on NewFromSolution call

    You can do it using something of this kind
    Microsoft.Office.Interop.InfoPath.XDocument myDOM = myapp.XDocuments.NewFromSolution("abc");

    and use myDom to set the values.

    Shanthi
    InfoPath Dev India
    Shanthi Reddy
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.