Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
If developers need to save their files using Aspose.Cells Java for PHP to some storage location, they can simply specify the file name (with its complete storage path) and the desired file format (using the FileFormatType enumeration) while calling the save method of the Workbook object.
PHP Code
$fileFormatType = new FileFormatType();
// Creating a Workbook object with an Excel file path
$workbook = new Workbook($dataDir . "book.xls");
// Save in default (Excel2003) format
$workbook->save($dataDir . "book.default.out.xls");
// Save in Excel2003 format
$workbook->save($dataDir . "book.out.xls", $fileFormatType->EXCEL_97_TO_2003);
// Save in Excel2007 (XLSX) format
$workbook->save($dataDir . "book.out.xlsx", $fileFormatType->XLSX);
// Save in SpreadsheetML format
$workbook->save($dataDir . "book.out.xml", $fileFormatType->EXCEL_2003_XML);
Download Saving Files (Aspose.Cells) from any of the social coding sites mentioned below:
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.