I run this code without the space and it does work. Try refreshing your
services and/or check your installation of Office.

============================================
Bryan F. Hogan
Director of Internet Development
Macromedia Certified ColdFusion MX Developer
Digital Bay Media, Inc.
1-877-72DIGITAL
============================================

-----Original Message-----
From: Steve Dworman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 10:06 AM
To: CF-Talk
Subject: RE: what the hell


nope

-----Original Message-----
From: Bryan F. Hogan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 10:00 PM
To: CF-Talk
Subject: RE: what the hell

Check the space in the following code's name attribute value

<cfobject type="com"
        action="Create"
      class="Excel.application"
      name=" MyExcelobj"
      context="local">

============================================
Bryan F. Hogan
Director of Internet Development
Macromedia Certified ColdFusion MX Developer
Digital Bay Media, Inc.
1-877-72DIGITAL
============================================

-----Original Message-----
From: Steve Dworman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 9:55 AM
To: CF-Talk
Subject: what the hell


I've read document after document regarding COM objects in CFMX, and tried
every suggestion those documents provide.  Still I receive the following
error

An exception occurred while instantiating a COM object
java.lang.NoSuchMethodException

This occurs when I try to create an object using the Excel.Application
class.

Here is the relevant code

<cftry>
            <cfobject type="com"
                        action="connect"
                        class="Excel.application"
                        name="MyExcelobj"
                        context="local">
<cfcatch type="any">
<!--- There is no existing object, create one --->
                        <cfobject type="com"
                                    action="Create"
                                    class="Excel.application"
                                    name=" MyExcelobj"
                                    context="local">
            </cfcatch>
</cftry>


Help please

Steven D Dworman
Macromedia Certified Developer
---------------------------------------------------------
Web Consultant
Systems Administrator

ComSpec International - http://www.comspecinternational.com
<http://www.comspecinternational.com>
phone: 248.647.8841
cell:  248.767.9925
---------------------------------------------------------
EMPOWER-XL ***Software for Higher Education***
http://www.empower-xl.com <http://www.empower-xl.com>





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to