Hi
To export the required fields to Outlook, you will need to create Data connection and write code
You will first have to add E-mail as a Submitting Data Source.
1) In Design mode, choose Data Connections from the Tools Menu and then
click Add.
2) Select Submit Data, and then click Next.
3) Select as an e-mail message, and then click Next.
4) Delete all text in all textboxes on the window (you will be adding all of
this content back in later using code). Click Next.
5) On the next window enter a name into the textbox. Remember what you name
it. Click Finish.
you can write code as :
Code in jscript:
var objEmailAdapter = null;
objEmailAdapter = XDocument.DataAdapters("<name of the Email dataconnetion>");
objEmailAdapter.To = "
[email protected]";
objEmailAdapter.Subject = "Status Report";
objEmailAdapter.Intro = "Name:" + XDocument.DOM.selectSingleNode("/my:myFields/my:Name").text+ "\n" +"Description: " +XDocument.DOM.selectSingleNode("/my:myFields/my:Description").text;
objEmailAdapter.Submit();
Code in C#:
IXMLDOMNode node = thisXDocument.DOM.selectSingleNode("<Xpath of the field1> ");
string value1 = node.text;
IXMLDOMNode node = thisXDocument.DOM.selectSingleNode("<Xpath of the field2>");
string value2 = node.text;
EmailAdapter oEmail = (EmailAdapter)thisXDocument.DataAdapters["<name of the Email dataconnetion>"];
oEmail.To = "";
oEmail.CC = "";
oEmail.Subject = "";
oEmail.Intro = value1 + value2;
oEmail.Submit();