From 206728c775b9a17e6f165e3bb7c3600762f6d9c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojta=20Mat=C4=9Bjka?= Date: Fri, 25 Jun 2021 14:09:11 +0200 Subject: [PATCH] Gridlines when printing I think that right function to show/hide grid lines when printing is `setPrintGridlines()` and not `setShowGridlines()` as said in docs. --- docs/topics/recipes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/topics/recipes.md b/docs/topics/recipes.md index ddf315be..62260fc6 100644 --- a/docs/topics/recipes.md +++ b/docs/topics/recipes.md @@ -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