-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Description
This is:
- a bug report or a feature request
i need to get values of dropdown list in xlsx file
but with
$test = $validation->getFormula1();
i get only the nameof the dropdown but no values
in this link xlsx image https://i.stack.imgur.com/mJ73K.png
and here Inserimento_Personal Computer (acquisto).xlsx the intrested file
What are the steps to reproduce?
<?php
require __DIR__ . '/vendor/autoload.php';
// Create new Spreadsheet object
$spreadsheet = new \PhpOffice\PhpSpreadsheet\Spreadsheet();
// add code that show the issue here...
$inputFileName = 'file.xlsx';
$spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($inputFileName);
$sheet = $spreadsheet->getSheet(2);
$validation = $sheet->getCell('F3')
->getDataValidation();
$test = $validation->getFormula1();
$test1 = $validation->getFormula2();What features do you think are causing the issue
- [ x] Reader
- Writer
- Styles
- Data Validations
- Formula Calculations
- Charts
- AutoFilter
- Form Elements
Does an issue affect all spreadsheet file formats? If not, which formats are affected?
xlsx files
Which versions of PhpSpreadsheet and PHP are affected?
php 7.4 --- PhpSpreadsheet 1.25.2
Metadata
Metadata
Assignees
Labels
No labels