Может так?
PHP код:
static void test(Args _args)
{
COM Excel;
com workBook;
com m_comDocument;
str _fileName;
;
_fileName = "C:\\Книга1.xls";
excel = new COM("Excel.Application");
workBook = excel.WorkBooks();
m_comDocument = workBook.Open(_fileName);
m_comDocument.close(true);
excel.quit();
}