0 Replies Latest reply on Apr 20, 2006 4:51 AM by ANNA_DRA

    Error  when instantiating a Com( EXCEL.APPLICATION) object in WINDOWS XP

    ANNA_DRA

      Hi,

      I am using coldfusion MX7 and OS is WindowXP. I am using COM object with Excel.Application for my program. but it is giving the below error. But same program is working in Window Profesional.

      ERROR IS:

      An exception occurred when instantiating a Com object.
      The cause of this exception was that: AutomationException: 0x80080005 - Server execution failed. Note that Windows 95 does not support automatic launch of a server, it must be running already.

      The error occurred in C:\CFusionMX7\wwwroot\XXX\report_top20.cfm: line 15

      13 : t1=now();
      14 : path=GetDirectoryFromPath(ExpandPath("*.*"));
      15 : xl=CreateObject("COM", "Excel.Application");
      16 : wbks=xl.workbooks;
      17 : tmp=wbks.open(path & "top20_template.xls");


      Plz help me.

      Reagrds,
      DRA.