Opening Files in PHP
Contents
[
Hide
]
Aspose.Cells - Open Excel Files
Opening through Path
Simply open a Microsoft Excel file by referencing the file’s path
PHP Code
$dataDir = '';
// Create Aspose.Cells Helper Object
$ptr = new \COM('Aspose.Cells.Interop.InteropHelper');
// Opening through Path
// Creating a Workbook object and opening an Excel file using its file path
$workbook = $ptr->New("Aspose.Cells.Workbook",array($dataDir . '/Book1.xls'));
$worksheets = $ptr->Get($workbook,"Worksheets",array());
Download Running Code
Download Opening Files (Aspose.Cells) from any of the below mentioned social coding sites: