Launching Custom Form from Internet Site

  • Thread starter Thread starter Blue
  • Start date Start date
B

Blue

Hello all,

I wanted to know if it was possible to launch a custom form from an intranet
or internet web page? Any help on this is appreciated...Thank you in
advance.

BLUE
 
Sue,

Which part of the sample code tells the webpage where to locate the
customized form?

Sample code:
---------------------------------------------------------
<html>
<head>
<script language="JavaScript" type="text/JavaScript">
<!-- Enable Stealth Mode
// Variable Definitions
var nameSpace = null;
var mailFolder = null;
var mailItem = null;
var tempDoc = null;
var outlookApp = null;
function OpenOutlookDoc(whatform)
{
try
{
outlookApp = new ActiveXObject("Outlook.Application");
nameSpace = outlookApp.getNameSpace("MAPI");
mailFolder = nameSpace.getDefaultFolder(6);
mailItem = mailFolder.Items.add(whatform);
mailItem.Display(0)
}
catch(e)
{
// act on any error that you get
}
}
// Disable Stealth Mode -->
</script>
</head>
<body>
<form>
To use form buttons:<br>
<input type=button value="Form A" NAME="OutlookOpen1"
OnClick="OpenOutlookDoc('IPM.Note.FormA')"><br><br>
<input type=button value="Form B" NAME="OutlookOpen2"
OnClick="OpenOutlookDoc('IPM.Note.FormB')"><br><br>
To use text links:<br>
<a href=javascript:void(0) onClick="OpenOutlookDoc('IPM.Note.FormA')">Form
A</a><br><br>
<a href=javascript:void(0) onClick="OpenOutlookDoc('IPM.Note.FormB')">Form
B</a>
<!-- change the information between the single quotes to match your custom
forms class Name like IPM.Note.CustomForm - you can have different links to
different forms, provided you specify a different class Name for each link
//-->
</form>
</body>
</html>
 
mailItem = mailFolder.Items.add(whatform);

whatform is the message class of a custom Outlook form -- e.g.
IPM.Note.MyForm -- preferably published to the Organizational Forms library.
See the usage in the OnClick handlers.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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

Back
Top