# 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.

The number of tabs and the content of some of the tabs of the Print dialog depends on the printer model you use. Some of the described tabs or options may not be available with your printer, especially when printing to a file.

## Print General

### Print Dialog Printer Tab

Select the preferred printer in the upper half of the tab. Your default printer is already highlighted when you open the Printer dialog. Optionally select the number of copies and a page range in the lower half of the dialog. Click on Print to send the document to your printing system.

When printing to a file you may want to change the output name and folder before printing. You can choose between saving a postscript or a PDF file.

## Page Setup

### Print Dialog Page Setup Tab

In the Page Setup tab you can choose several options concerning the layout or the paper. Choose how many sheets shall appear on one piece of paper, about two-sided printing, limit the printed pages by even or odd page numbers or the scale in the layout section. Select the paper type (e.g. preprinted) and the paper source and output tray in the paper section.

The preview in the lower part of the tab gives you a small hint of how your printed document will look like.

## Print Range

### Print Dialog Range Tab

The Print Range tab gives you the opportunity to limit the range of the printed workbook. You may choose between printing the whole workbook, only the selected or not the selected area or a defined range of worksheets.

## Print Job

### Print Dialog Job Tab

In the Job tab you may change the priority or add billing information to the print job. Also you can choose to add a cover page in front or after the printed worksheets. Finally you can decide whether your job should be printed right now or at a defined point in time.

Some options may be unavailable due to user restrictions. Ask your local administrator for further details.

## Image Quality

### Print Dialog Image Quality Tab

In the Image Quality tab you can select the resolution of the printed document depending on your printer. No more, no less.

## Finishing

### Print Dialog Finishing Tab

The Finishing tab lets decide whether you want a blank separation sheet after every page, after the whole job or no separation sheet at all.

## Advanced

### Print Dialog Advanced Tab

In the Advanced tab you can change several options depending on the printer model you use.

## 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.

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. You can also save your adjustments by activating the save as default settings flag.

## Page Setup Dialog - Page

### Print Setup Page Tab

Change the paper type by clicking the Change Paper Type button.

### Print Setup Paper Type dialog

Select the preferred printer or choose Any Printer to see the formats supported by all printers. Pick a paper size and page orientation (portrait, landscape or reverse) 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 (millimetres, points or inches) as the paper size. Change the unit in the paper and layout section to best fit your needs. You may also specify whether the page is centered horizontally and/or vertically on the printable part of the page.

## Page Setup Dialog - Scale

### Print Setup Scale Tab

Select the scale applied while printing. You can choose between no scaling, a fixed scaling or automatic scaling to fit the workbook to a defined number of paper sheets.

## Page Setup Dialog - Headers and Footers

### Print Setup Headers and Footers Tab

Select a predefined format for either the header or the footer. You can define an header or a footer by clicking the Configure button next to the according drop-down field.

### Print Setup Headers and Footers Configure Dialog

Headers and footers are divided into left, center and right area. Select the area you want to change. Insert a user-defined text or just select one or several of the given options. When selecting time and/or date you may choose the format by clicking on the arrow next to the symbol and click on the preferred option. Beside the according page number, the number of total pages and the name of the according worksheet, you may also insert the file name and/or path. Finally you can select a defined cell to appear in the header/footer. Additionally there are a number of special opcodes for common options. These are:

&[TAB]

- Name of the worksheet.

&[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/`.

&[CELL:$A$1]

- The content of the cell `$A$1` on the sheet being printed. Instead of `$A$1` any other absolutely addressed cell may be used.

&[CELL:A1]

- The content of the top left cell on the current page. Instead of `A1` any other relative cell address may be used. This relative address is interpreted with respect to the top left cell on the current page. Any repeating rows or columns are ignored.

&[CELL:rep|A1]

- The content of the top left cell on the current page. Instead of `A1` any other relative cell address may be used. This relative address is interpreted with respect to the top left cell on the current page. Repeating rows or columns are not ignored. So if the top left cell is in a repeating row or column then the relative address is interpreted with respect to that cell.

### TIP

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

### TIP

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

## Page Setup Dialog - Print Area

### Print Setup Print Area Tab

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`.

## Page Setup Dialog - Sheet

### Print Setup Sheet Tab

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 Do not print with all sheets if you want to avoid printing this sheet whenever you choose to print all sheets. If this item is checked then this sheet will only be printed as the active sheet or as part of a range of sheets. This is useful if you have a non-hidden sheet that contains only auxillary information and should normally not be printed.

Select Row and column headings to print the row and column headings (1,2,3,... and A,B,C,...).

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.

The Errors selection box allows you to choose how to print error values:

Print as displayed

- Every error value is printed just as shown on the worksheet.

Print as spaces

- No error values are printed.

Print as dashes

- Every error value is replaced by two m-dashes (separated by a thin space): "— —".

Print as NA

- Every error value is printed as an #N/A error.

Finally you can decide about the direction in which the workbook will be printed (Down, then right or Right, then down).

## 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. Evince is set up to be the default viewer.

## Customizing the preview application

You may change the default preview application by editing your presets for GTK. Open the file .gtkrc-`your GTK version` and add a line in the format `gtk-print-preview-command="`command to your preferred viewer`"`.

Please make sure you have only one line defining your preview application.

It is strongly recommended to use Evince as the default viewer. A convincing argument is that Evince deletes the preview file after closing the viewer.