Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 28th, 2008, 11:39 PM
Registered User
 
Join Date: Apr 2008
Location: chennai, tamilnadu, India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default "Automation server can not create object"

Hai,
       Now want to create outlook object in server application. following sample code i am using now.


<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"); // This Line not Executed ,after it return Object Expected error.
            //
            nameSpace = outlookApp.getNameSpace("MAPI");
            apptFolder = nameSpace.getDefaultFolder(9);
            apptItem = apptFolder.Items.add("IPM.Appointment");
                try
                {
                apptItem.Subject ="SDFSDSFDS";
                apptItem.Body = "sdfsf";
                apptItem.Location = "sdfsfdsdf";
                apptItem.Start = "12:00 PM"+"12-05-2008";
                apptItem.End ="12:30 PM"+"12-05-2008";
                apptItem.Save();
                }
                catch(e)
                {
                alert("Enable your ActiveX controls " +e);
                }
            }
        //-->
        </script>
    </head>
    <body>

    <OBJECT classid="clsid:99B42120-6EC7-11CF-A6C7-00AA00A47DD2" CODEBASE="http://www.microsoft.com/ie/download/activex/ielabel.ocx#version=3D4,70,0,1086"
         id=sprlbl1
         width=50
         height=200
         align=left
         hspace=20
         vspace=0 >
    </OBJECT>

<input type="button" name="submit" value="SubmitBug" onClick="AddCalendarAppointment()" />
</body>
</html>


     This code without server(normal IE) successfully executed. but when i deploy apache tomcat server this same code, error is occur(Automation server can not create object). How to resolve this error.
please response me. thanks
                         Regards
                       N.Nagaraj

nagaraj
Reply With Quote
  #2 (permalink)  
Old April 29th, 2008, 10:59 PM
jomet
Guest
 
Posts: n/a
Default

try
enabling ie's
Initialize and script ActiveX controls not marked as safe



jomet.
`````````````````````````````````````````````````` ``````````````````````
Once you start a working on something, dont be afraid of failure and dont abandon it.
People who work sincerely are the happiest.
Reply With Quote
  #3 (permalink)  
Old April 30th, 2008, 08:27 AM
Registered User
 
Join Date: Apr 2008
Location: chennai, tamilnadu, India.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks Jomet.
After enabling ie's
Initialize and script ActiveX controls not marked as safe
It's Done.
But I want Programatically how to enable. that means when i click a button,do the above process.

nagaraj
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automation Server can't create object anujrathi ASP.NET 2.0 Professional 0 February 20th, 2007 01:43 AM
Word automation is not working in terminal server kalees ASP.NET 1.0 and 1.1 Professional 0 September 20th, 2006 04:03 AM
create a Line object ,Box object in CR at Runtime? thanhnt Pro VB 6 1 May 16th, 2005 06:51 AM
Automation error The object invoked has disconnect vensee Crystal Reports 0 April 11th, 2005 06:12 PM
RegEx Server.Create Object Error ckwizard77 Classic ASP Professional 1 September 2nd, 2004 03:04 PM



All times are GMT -4. The time now is 04:32 PM.


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