Gridlines when printing

I think that right function to show/hide grid lines when printing is `setPrintGridlines()` and not `setShowGridlines()` as said in docs.
This commit is contained in:
Vojta Matějka 2021-06-25 14:09:11 +02:00 committed by GitHub
parent cd84020693
commit 206728c775
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -475,7 +475,7 @@ $spreadsheet->getActiveSheet()->setBreak('D10', \PhpOffice\PhpSpreadsheet\Worksh
To show/hide gridlines when printing, use the following code:
```php
$spreadsheet->getActiveSheet()->setShowGridlines(true);
$spreadsheet->getActiveSheet()->setPrintGridlines(true);
```
### Setting rows/columns to repeat at top/left