# Printing to a Printer or a File.

The Print dialog includes the most important options related to printing. More detailed options related to printing can be set in the Page Setup dialog, detailed in sect-printing-setup Press the Print to print out the workbook. Press the Print Preview button to display the Print Preview dialog.

The Print dialog has 3 tabs that include different groups of options.

## Print Dialog Printer Tab

Normally you want to select Generic Postscript as Printer and the appropriate printer name as Location. Then click on Print to send the document to your printer.

You can also send the printed document to a postscript file by selecting File as Location and specifying an appropriate output file.

## Print Dialog Job Tab

In the Job tab you may also select a multiple number of copies, or specify which sheets to print. Choose Selection to print just the range of cells currently selected on the active sheet.

## Print Dialog Paper Tab

In the Paper tab you can select the paper size used for printing, the page orientation and the layout. The layout specification allows to print several logical pages on the same physical sheet of paper. If you need to change your margins, scale the output to fit properly onto your page or customize the page footers or headers, see the sect-printing-setup

## Page Setup.

The Page Setup Dialog can be used to configure various options related to printing out a workbook. Click on File Menu Page Setup to activate the Page Setup.

## TIP

Remember that at any time you can click on the Print preview button to see what your document looks like with your selected options. See the sect-printing-preview

Normally the specified settings apply only to the current sheet. Select another sheet at the bottom of the Page Setup Dialog or select Apply to all sheets of this workbook.

## Page Setup Dialog - Page

Select the paper size and page orientation (portrait or landscape) to suit the best layout for your document.

Specify the required margins of the page. Nothing will be printed inside these margins, not even page numbers.

The margins will be measured in the same units (centimetres, millimetres, points or inches) as the paper size. Change the unit in the paper and layout section to best fit your needs.

Change the scale your image to fit it to your page size suitably. The scaling can both enlarge and diminish the size of your printed document.

Select the Fit to option to have the document automatically scaled. When scaling, the aspect ratio will be preserved. Therefore less pages than specified might be printed.

You may also specify whether the page is centered horizontally and/or vertically on the printable part of the page.

## Page Setup Dialog - Headers and Footers

### Print Dialog - Headers and Footers

Select the space available for the header and footer. If you do not provide sufficient space for the header and footer, they will not print even if you chose a style for them.

Click on the option menu to choose from a range of different header and footer styles.

### TIP

You can choose the font in which the header and footer is printed by selecting a default header/footer font the preferences (see in sect-configuration-preferences).

Customize the header or footer by choosing the last option on the menu.

### TIP

Double clicking on the header or footer preview will quickly allow you to customize that header or footer.

## Customizing Headers and Footers

### Print Dialog - Customize Header/Footer

Enter what text you would like to appear in the header or footer. There are a number of special opcodes for common options. These are:

&[TAB]

- Name of the workbook.

&[PAGE]

- Page number in the printing.

&[PAGES]

- Total number of pages in the printout.

&[DATE]

- Current date in format dd-mmm-yyyy. The format can be changed by specifying the desired format in the opcode: `&[DATE:yyyy/mm/dd]`.

&[TIME]

- Current time in format hh:mm. The format can be changed by specifying the desired format in the opcode: `&[TIME:hh:mm:ss]`.

&[FILE]

- The basename of the file. For the file `/home/jdoe/file.gnumeric`, this opcode prints `file.gnumeric`.

&[PATH]

- The path of the file excluding the basename. For the file `/home/jdoe/file.gnumeric`, this opcode prints `/home/jdoe/`.

## Page Setup Dialog - Sheet

You can select rows or columns to be printed on every page of the output. This is commonly used for printing column or row names. To enable this, enter the range of cells to be repeated in Rows to repeat... or Columns to repeat.. field. Instead of entering them manually, you can also select columns or rows to be repeated using the mouse.

### WARNING

Note that the rows and columns must be entered as ranges. That is, if you want to have first row repeated, you must enter `1:1`, not just `1`. Similarly, to have column `A` repeated, you must enter `A:A`.

Select Grid lines to print the cell grid lines with your document. Unselect the button to hide the grid lines from your print output.

Select Black and white to convert the colours in your document to a greyscale range.

Select Styles with no content to ensure cells with style changes will be printed, even if they are empty. For example, if you have a number of cells with the background color changed but no data in them, you can select this option to ensure they are in the printed output.

## Print Preview.

The Print Preview Dialog is used to display what the printed output will look like. The Print Preview dialog can be used to check whether you have the desired formatting and layout before you print out the workbook.

## Print Preview Dialog

## Menu Bar

View

- This menu contains:

  - First Page —Shows the first page in the workbook.

  - Previous Page —Shows the previous page in the workbook.

  - Next Page —Shows the next page in the workbook.

  - Last Page —Shows the last page in the workbook.

  - Zoom in —Zooms the current page in, showing more detail.

  - Zoom out —Zooms the current page out, showing less detail.

## Toolbar

An image of the print toolbar button. Print

- Prints the current worksheet to a file or a printer.

An image of the print preview toolbar move to the first page button. First

- Show the first page in the workbook.

An image of the print preview toolbar move back button. Back

- Show the previous page in the workbook.

An image of the print preview toolbar next page button. Next

- Show the next page in the workbook.

An image of the print preview toolbar last page button. Last

- Show the last page in the workbook.

An image of the print preview toolbar zoom in button. Zoom in

- Zooms the current page in, showing greater detail.

An image of the print preview toolbar zoom out button. Zoom out

- Zooms the current page out, showing less detail.

An image of the print preview toolbar zoom to fit at one to one scale button. Fit at one to one scale.

- Fits the page at full resolution.

An image of the print preview toolbar zoom to fit button. Fit

- Fits the whole page into the screen space.