Hi everyone
I'm trying to create email messages in Outlook that contain links to an
InfoPath form. Currently I'm using the following HTML in my message:
<html>
<head>
<title>InfoPath Launcher</title>
<script language="javascript" type="text/javascript">
function launchInfoPath()
{
objInfoPath = new ActiveXObject("InfoPath.Application");
strXSFPath =
"D:\\VBProjects\\LibraryPhotos\\LibraryPhotos\\manifest.xsf";
objInfoPath.XDocuments.NewFromSolution(strXSFPath);
}
</script>
</head>
<body>
Click <a href="javascript:launchInfoPath();">here</a> to open form.
</body>
</html>
That code works perfectly in IE (InfoPath opens and the form appears),
but not in Outlook. When you click the link, IE opens for a
split-second then closes itself, and InfoPath doesn't start at all.
Any ideas?
Thanks :)
Chris
Adam Harding - 13 Apr 2006 15:05 GMT
Chris
If the purpose is to Publish the form to the users, go through the publish
wizard and select Notify Users to email them all the link to the template,
that should help.
Cheers Adam
> Hi everyone
>
[quoted text clipped - 27 lines]
> Thanks :)
> Chris
Chris Mahoney - 17 Apr 2006 21:10 GMT
I have a separate app where a user can select to send the form to
another user, and I'm generating the email message from there. I'm
trying to cut down on additional steps and would like it to all be
automated without the users having to manually send things around.
Thanks
Chris
Chris Mahoney - 20 Apr 2006 03:36 GMT
I also posted my question to an Outlook newsgroup, and was told that
Outlook doesn't allow JavaScript for security reasons. I ended up
making a link to an HTML file containing the JavaScript. I'm somewhat
confused as to why they block JavaScript when it's so easy to get
around it, but regardless, it's all working now :)