Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 30th, 2008, 09:22 AM
Registered User
 
Join Date: Apr 2008
Location: chennai, tamilnadu, India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Automation Error

can not create OutLook Object in tomcat server."Automation server can not create object" error is occurred.

[outlookApp = new ActiveXObject("Outlook.Application");// here occur this issue.]

This code with out server(tomcat), it's execute.
but Server side only occur this issue.

Sample File follows:

<html>
<head>
<title> Naga Test </title>
<script language="JavaScript" type="text/JavaScript">
<!--
   var nameSpace = null;
   var outlookApp = null;
   var apptFolder = null;
   var apptItem = null;

    function AddCalendarAppointment()
    {
    outlookApp = new ActiveXObject("Outlook.Application");
    nameSpace = outlookApp.getNameSpace("MAPI");
    apptFolder = nameSpace.getDefaultFolder(9);
    apptItem = apptFolder.Items.add("IPM.Appointment");
        try
        {
        apptItem.Subject ="SDFSD fsfd";
        apptItem.Body = "sdfsf";
        apptItem.Location = "sdfsfdsdf";
        apptItem.Start = "12:00 PM"+"12-25-2008";
        apptItem.End ="12:30 PM"+"12-25-2008";
        apptItem.Save();
        }
        catch(e)
        {
        alert("Enable your ActiveX controls " +e);
        }
    }
//-->
</script>
</head>
<body>
<script language="JavaScript" type="text/JavaScript">
</script>
<input type="button" name="submit" value="SubmitBug" onClick="AddCalendarAppointment()" />
</body>
</html>

please give me a solution.

                       Regards
                       N.Nagaraj

nagaraj


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automation Error in Activex Exe jawu VB Components 2 June 14th, 2005 04:40 AM
Outlook Automation Error www2004 Pro VB 6 4 August 12th, 2004 09:09 AM
Automation Error 430 Pls Help sumanmukherjee VB Components 0 September 5th, 2003 01:21 AM
error 7866 when using automation pilmart Access 0 August 29th, 2003 02:57 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.