Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Microsoft Excel<br/><b>Description:</b> Microsoft Excel cannot access the file 'C:\AppServ\www\ajaxupload\MyXls\18-05-2015.xlsx'. 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.' in C:\AppServ\www\ajaxupload\chkex.php:13 Stack trace: #0 C:\AppServ\www\ajaxupload\chkex.php(13): variant->Open('C:\AppServ\www\...') #1 {main} thrown in C:\AppServ\www\ajaxupload\chkex.php on line 13
if( !file_exists( $strPath."/".$OpenFile )) die ( "File not found [$strPath/$OpenFile]");
13.$xlBook = $xlApp->Workbooks->Open($strPath."/".$OpenFile);