You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [X] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)
What is the expected behavior?
What is the current behavior?
What are the steps to reproduce?
$spreadsheet = new Spreadsheet();
$sheet = $spreadsheet->getActiveSheet();
$sheet = $spreadsheet->getSheet(0);
$validation = $sheet->getCell('B2')->getDataValidation();
$validation->setType(\PhpOffice\PhpSpreadsheet\Cell\DataValidation::TYPE_LIST);
$validation->setFormula1('"A, B, C, D"');
$validation->setError('Select one from the drop down list.');
$writer = new Xlsx($spreadsheet);
$name = str_replace('.','',str_replace(' ', '',microtime().date('Y h'))).'.xlsx';
$path = 'arquivos/modelo_planilha/'.$name;
$writer->save($path);
Which versions of PhpSpreadsheet and PHP are affected?
PHP: 7.3
PhpSpreadsheet : 1.19
The text was updated successfully, but these errors were encountered:
This is:
What is the expected behavior?
What is the current behavior?
What are the steps to reproduce?
Which versions of PhpSpreadsheet and PHP are affected?
PHP: 7.3
PhpSpreadsheet : 1.19
The text was updated successfully, but these errors were encountered: