在 PHP 中保存文件
Contents
[
Hide
]
Aspose.Cells - 保存 Excel 文件
通过路径打开
通过引用文件路径保存 Microsoft Excel 文件
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());
//Your Code goes here for any workbook related operations
$ptr->Call($workbook,"Save",array($dataDir.'/book1.xls'));
print "File saved successfully!" . PHP_EOL;
下载运行代码
下载**保存文件 (Aspose.Cells)**来自以下任何社交编码网站: