Ouverture de fichiers en PHP

Aspose.Cells - Ouvrir les fichiers Excel

Ouverture par chemin

Ouvrez simplement un fichier Excel Microsoft en référençant le chemin du fichier

Code PHP

         $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());

Télécharger le code d’exécution

Télécharger**Ouverture de fichiers (Aspose.Cells)**à partir de l’un des sites de codage social mentionnés ci-dessous :