Arbeitsblätter anhand des Blattindex in PHP entfernen
Contents
[
Hide
]
Arbeitsblätter anhand des Blattindex entfernen
Arbeitsblätter anhand des Blattindex entfernen
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());
$ptr->Call($worksheets,"RemoveAt",array(0));
$ptr->Call($workbook,"Save",array($dataDir."/output.xls"));
Laufenden Code herunterladen
Arbeitsblätter anhand des Blattnamens entfernen (Aspose.Cells) von einer der unten genannten sozialen Coding-Websites herunterladen: