I am having an error trying to send an InfoPath 2003 form through Outlook 2007. I have read on various other sites both that it is possible to do and that it isn't. Those who say it can be done suggested creating a button with coding in it to accomplish it. I have done this (code below) and it works well as long as the user is on 03. Some of our new hires have been given 07 Outlook and I am not sure if the error is in communication between IP and OL or in the settings that they have as new employees. Any input or suggestions would be greatly appreciated and thanks in advance.
-----------------------js-----------------------------------------
{
function OpenMailEnvelop(subject, to)
{
try
{
var oEnvelope = Application.ActiveWindow.MailEnvelope;
oEnvelope.Subject = subject;
oEnvelope.To = to;
oEnvelope.Visible = true;
return true;
}
catch(exception)
{
return false;
}
}
function CTRL2_5::OnClick(eventObj)
{
XDocument.DOM.setProperty("SelectionNamespaces",
"xmlns:my=\" myXSD/2011-06-27T17:47:16\"");
var name = XDocument.DOM.selectSingleNode("/my:myFields/my:Name2").text;
OpenMailEnvelop("Quality controll email","" + name)
}
}
-----------------------js-----------------------------------------
{
function OpenMailEnvelop(subject, to)
{
try
{
var oEnvelope = Application.ActiveWindow.MailEnvelope;
oEnvelope.Subject = subject;
oEnvelope.To = to;
oEnvelope.Visible = true;
return true;
}
catch(exception)
{
return false;
}
}
function CTRL2_5::OnClick(eventObj)
{
XDocument.DOM.setProperty("SelectionNamespaces",
"xmlns:my=\" myXSD/2011-06-27T17:47:16\"");
var name = XDocument.DOM.selectSingleNode("/my:myFields/my:Name2").text;
OpenMailEnvelop("Quality controll email","" + name)
}
}