troubleshooting Question

Anyone make php COM working on WIN7?

Avatar of Tim
TimFlag for Canada asked on
PHPMicrosoft ExcelWindows OSWindows 7
15 Comments1 Solution1959 ViewsLast Modified:
I updated my computer from xp to win7.
the php COM do not work now.
Anyone can help?


$excel = new COM("excel.application") or die("Unable to instanciate excel");
$excel->Visible = 0;
$excel->DisplayAlerts = 0;

Get error:
Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Microsoft Office Excel<br/><b>Description:</b> Microsoft Office Excel cannot access the file 'C:\projects\test.xls'. There are several possible reasons: • The file name or path does not exist. • The file is being used by another program. • The workbook you are trying to save has the same name as a currently open workbook
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 15 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 15 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros