mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-25 12:08:23 +00:00
Convert docs with our migrator
This commit is contained in:
@@ -22,21 +22,21 @@ date_default_timezone_set('Europe/London');
|
||||
/** Include path **/
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . '../../../Classes/');
|
||||
|
||||
/** PHPExcel_IOFactory */
|
||||
/** \PhpOffice\PhpSpreadsheet\IOFactory */
|
||||
include 'PHPExcel/IOFactory.php';
|
||||
|
||||
$inputFileType = 'Xlsx';
|
||||
$inputFileName = './sampleData/example1.xlsx';
|
||||
|
||||
/* Create a new Reader of the type defined in $inputFileType **/
|
||||
$objReader = PHPExcel_IOFactory::createReader($inputFileType);
|
||||
$objReader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($inputFileType);
|
||||
/* Load $inputFileName to a PHPExcel Object **/
|
||||
$objPHPExcel = $objReader->load($inputFileName);
|
||||
$spreadsheet = $objReader->load($inputFileName);
|
||||
|
||||
echo '<hr />';
|
||||
|
||||
/* Read an array list of any custom properties for this document **/
|
||||
$customPropertyList = $objPHPExcel->getProperties()->getCustomProperties();
|
||||
$customPropertyList = $spreadsheet->getProperties()->getCustomProperties();
|
||||
|
||||
echo '<b>Custom Property names: </b><br />';
|
||||
foreach ($customPropertyList as $customPropertyName) {
|
||||
|
||||
Reference in New Issue
Block a user