Send form with certain Data via Email using code - InfoPath Dev
in

InfoPath Dev

Send form with certain Data via Email using code

Last post 04-21-2010 03:18 AM by Eng. Alaa. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 04-21-2010 03:18 AM

    Send form with certain Data via Email using code

    Hi All, I am new to info path , what I want to do is like this a simple asp.net page that have these textbooks : Municipality ID, Municipality Name, Municipality Code and a Button Called SendMail and there is an info path application Form stored at a certain known place at my computer, assume it to be drive c:/ once the user click the button after entering data in the text boxes , it must fill out some fields in the form application and they are Municipality Name and Municipality Code then send this form to the municipality via Email to fill the rest of the application any ideas , suggestions, once we have saved the info path as source file, it generates many files with many extensions which one we have to open in the code and can we then use the xpath to pass the data as parameters to the function like this private void SetFieldValue(string xPath,string xValue, bool isNil) { try { XPathNavigator xnDoc = this.MainDataSource.CreateNavigator(); XPathNavigator xnMyField = xnDoc.SelectSingleNode(xPath, this.NamespaceManager); if (isNil) { if (xnMyField.MoveToAttribute("nil", "http://www.w3.org/2001/XMLSchema-instance")) xnMyField.DeleteSelf(); } xnMyField.SetValue(xValue); xnDoc = null; xnMyField = null; } catch (Exception ex) { throw new Exception(xPath + ":" + xValue + ":" + ex.StackTrace, ex); }
Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.