Limitations and API Differences
Contents
[
Hide
]
Différences d’API publiques
La liste suivante (avec des segments de code d’exemple) montre quelques différences entre Aspose.Cells for Java et les API Aspose.Cells for PHP via Java.
Comparaisons de package de bibliothèque d’importation
Aspose.Cells for Java
import com.aspose.cells.*;
Aspose.Cells for PHP via Java
require_once("Java.inc");
require_once("lib/aspose.cells.php");
use aspose\cells;
use aspose\cells\Workbook;
Instanciation d’un nouveau classeur
Aspose.Cells for Java
Workbook workbook = new Workbook();
Aspose.Cells for PHP via Java
$workbook = new Workbook();
Énumérations ou constantes
Aspose.Cells for Java
arc2.getLineFormat().setDashStyle(MsoLineDashStyle.SOLID);
Aspose.Cells for PHP via Java
$arc2->getLineFormat()->setDashStyle(cells\MsoLineDashStyle::SOLID);
Exemple
Aspose.Cells for Java
import com.aspose.cells.*;
public class Test1 {
/**
* @param args
*/
public static void main(String[] args) throws Exception {
Workbook workbook = new Workbook();
WorksheetCollection worksheets = workbook.getWorksheets();
Worksheet worksheet = worksheets.get(0);
Cell cell = worksheet.getCells().get("A1");
cell.putValue("Hello World!");
workbook.save("out1.xlsx");
}
}
Aspose.Cells for PHP via Java
<?php
require_once("Java.inc");
require_once("lib/aspose.cells.php");
use aspose\cells;
use aspose\cells\Workbook;
use aspose\cells\WorsheetCollection;
use aspose\cells\Worksheet;
use aspose\cells\Cell;
$workbook = new Workbook();
$worksheets = $workbook->getWorksheets();
$worksheet = $worksheets->get(0);
$cell = $worksheet->getCells()->get("A1");
$cell->putValue("Hello World!");
$workbook->save("out1.xlsx");
?>
Autres limitations de l’API Aspose.Cells for PHP via Java par rapport à l’API Aspose.Cells for Java
- L’importation/exportation de données à partir d’un tableau, d’un ArrayList, d’un ResultSet, etc. n’est pas prise en charge.
- L’impression n’est pas prise en charge.