Print Gridlines by Default in LibreOffice Calc
By default, LibreOffice Calc displays cell gridlines on your screen while editing but hides them when printing or exporting to PDF. You can enable print gridlines for a single document through the page style settings, or save the configuration into a custom default template so every new spreadsheet automatically prints with visible gridlines.
Enable Print Gridlines for the Current Document
To turn on gridlines for printing in your active spreadsheet:
- Open your spreadsheet in LibreOffice Calc.
- Go to the top menu and select Format > Page Style (or right-click the sheet tab at the bottom and select Page Style).
- In the Page Style dialog box, click on the Sheet tab.
- Locate the Print section.
- Check the box next to Grid.
- Click OK to apply the changes.
You can verify the change by going to File > Print
Preview (or pressing Ctrl + Shift + O), where the
gridlines will now be visible on the output pages.
Set Print Gridlines as the Default for All New Documents
LibreOffice Calc applies print settings on a template level. To ensure all future spreadsheets print gridlines by default, create and set a default template:
- Open a new, blank spreadsheet.
- Navigate to Format > Page Style.
- Select the Sheet tab, check the Grid box under the Print section, and click OK.
- Go to File > Templates > Save As Template (or
press
Shift + F11). - Enter a name for your template (such as Default with Gridlines).
- Select a template category (such as My Templates).
- Check the box labeled Set as default template.
- Click Save.
From this point forward, every new spreadsheet created via File > New > Spreadsheet will inherit this setting and include visible cell gridlines when printing.