Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cell content is not strike through with setStrikethrough(true) #403

Closed
YvesAmmann opened this issue Mar 4, 2018 · 0 comments
Closed

Cell content is not strike through with setStrikethrough(true) #403

YvesAmmann opened this issue Mar 4, 2018 · 0 comments

Comments

@YvesAmmann
Copy link

This is:

- [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?

Cell content is strike through.

What is the current behavior?

Cell content is not strike through.

What are the steps to reproduce?

<?php
require __DIR__ . '/vendor/autoload.php';

use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
use PhpOffice\PhpSpreadsheet\Style\Fill;
use PhpOffice\PhpSpreadsheet\Style\Color;
use PhpOffice\PhpSpreadsheet\Style\Alignment;

$excel = new Spreadsheet();
$sheet = $excel->getActiveSheet();
$sheet->setTitle('Test');

$sheet->setCellValue('A1', 'Test setStrikethrough()');
$sheet->getStyle('A1')->getFont()->setStrikethrough(true);

Which versions of PhpSpreadsheet and PHP are affected?

PhpSpreadsheet 1.1
PHP 7.2.2

Dfred pushed a commit to Dfred/PhpSpreadsheet that referenced this issue Nov 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant