Jump to content



  • Please log in to reply
No replies to this topic

#1 msumesh

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 14 September 2006 - 05:23 AM


How to run a excel macros, using EXCEL.APPLICATION COM with IIS Server?

If i use EXCEL.SHEET COM object, i am getting error

Fatal error: Uncaught exception 'com_exception' with message 'Unable to lookup `application': Call was rejected by callee. ' in c:\Inetpub\wwwroot\excel.php:52 Stack trace: #0 c:\Inetpub\wwwroot\excel.php(52): Excel::XL() #1 c:\Inetpub\wwwroot\testing_com.php(22): Excel->XL('Umesh.xls', 'C:\', 'Sheet1') #2 {main} thrown in c:\Inetpub\wwwroot\excel.php on line 52

It works fine in apache server and where as in the IIS server it gives the above error.

Reproduce the code.
/* Test for Excel.php: A class for use with PHP4 scripts only*/
# Put the include file in your php include directory
require ("excel.php");
# Put the umesh.xls file in the document directory
$workbook = "Umesh.xls";
$sheet = "Sheet1";

/* Instantiate Excel and open the test file. */

#Instantiate Excel
    $E = new Excel;

#Open the workbook
    Print "Test starting..<br>";
# Print to browser

# Run the MACRO : Helloworld

# Close the Workbook
unset ($E);

Kindly suggest me.. ???

Thanks in advance.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users