Open InfoPath from Outlook

C

Chris Mahoney

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
 
A

Adam Harding

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
 
C

Chris Mahoney

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
 
C

Chris Mahoney

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 :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top