1 <sect1 id="sect-printing">
2 <title>Printing to a Printer or a File.</title>
5 The <interface>Print dialog</interface> includes the most important options
6 related to printing. More detailed options related to printing can be set
7 in the <interface>Page Setup dialog</interface>, detailed in
8 <xref linkend="sect-printing-setup" />. Press the
9 <guibutton>Print</guibutton> to print out the workbook. Press the
10 <guibutton>Print Preview</guibutton> button to display the
11 <interface>Print Preview</interface>.
16 The number of tabs and the content of some of the tabs of the <interface>Print
17 dialog</interface> depends on the printer model you use. Some of the described
18 tabs or options may not be available with your printer, especially when
23 <sect2 id="print-general">
24 <title>Print General</title>
25 <figure id="print-workbook-printer-fig">
26 <title><interface>Print Dialog Printer Tab</interface></title>
29 <imagedata format="PNG"
30 fileref="figures/print-worksheet-printer-general.png" />
36 Select the preferred <interface>printer</interface> in the upper half of
37 the tab. Your default printer is already highlighted when you open the
38 <interface>Printer dialog</interface>. Optionally select the <guilabel>number of
39 copies</guilabel> and a <guilabel>page range</guilabel> in the lower half of
40 the dialog. Click on <guibutton>Print</guibutton> to send the document to your
45 When printing to a file you may want to change the <guilabel>output name</guilabel>
46 and <guilabel>folder</guilabel> before printing. You can choose between saving a
47 <keycap>PostScript</keycap> or a <keycap>PDF</keycap> file.
51 <sect2 id="print-page-setup">
52 <title>Page Setup</title>
53 <figure id="print-worksheet-page-setup-fig">
54 <title><interface>Print Dialog Page Setup Tab</interface></title>
57 <imagedata format="PNG"
58 fileref="figures/print-worksheet-page_setup.png" />
64 In the <guimenuitem>Page Setup</guimenuitem> tab you can choose several options
65 concerning the layout or the paper. Choose how many sheets shall appear on one
66 piece of paper, about two-sided printing, limit the printed pages by even or odd
67 page numbers or the scale in the layout section. Select the <guilabel>paper
68 type</guilabel> (e.g. preprinted) and the paper source and output tray in the
72 The preview in the lower part of the tab gives you a small hint of how your
73 printed document will look like.
79 <sect2 id="print-print-range">
80 <title>Print Range</title>
81 <figure id="print-worksheet-print-range-fig">
82 <title><interface>Print Dialog Range Tab</interface></title>
85 <imagedata format="PNG"
86 fileref="figures/print-worksheet-print_range.png" />
92 The <guimenuitem>Print Range</guimenuitem> tab gives you the opportunity to limit
93 the <guilabel>range</guilabel> of the printed workbook. You may choose between
94 printing the whole workbook, only the selected or not the selected area or a
95 defined range of worksheets.
99 <sect2 id="print-job">
100 <title>Print Job</title>
101 <figure id="print-worksheet-job-fig">
102 <title><interface>Print Dialog Job Tab</interface></title>
105 <imagedata format="PNG"
106 fileref="figures/print-worksheet-printer-job.png" />
112 In the <guimenuitem>Job</guimenuitem> tab you may change the <guilabel>priority
113 </guilabel> or add <guilabel>billing information</guilabel> to the print job. Also
114 you can choose to add a <guilabel>cover page</guilabel> in front or after the
115 printed worksheets. Finally you can decide whether your job should be printed
116 right now or at a defined point in time.
120 Some options may be unavailable due to user restrictions. Ask your local
121 administrator for further details.
127 <sect2 id="print-image-quality">
128 <title>Image Quality</title>
129 <figure id="print-worksheet-printer-image-quality-fig">
130 <title><interface>Print Dialog Image Quality Tab</interface></title>
133 <imagedata format="PNG"
134 fileref="figures/print-worksheet-printer-image_quality.png" />
140 In the <guimenuitem>Image Quality</guimenuitem> tab you can select the
141 <guilabel>resolution</guilabel> of the printed document depending on your printer.
146 <sect2 id="print-finishing">
147 <title>Finishing</title>
148 <figure id="print-worksheet-printer-finishing-fig">
149 <title><interface>Print Dialog Finishing Tab</interface></title>
152 <imagedata format="PNG"
153 fileref="figures/print-worksheet-printer-finishing.png" />
159 The <guimenuitem>Finishing</guimenuitem> tab lets decide whether you want
160 a blank <guilabel>separation sheet</guilabel> after every page, after the whole
161 job or no separation sheet at all.
165 <sect2 id="print-advanced">
166 <title>Advanced</title>
167 <figure id="print-worksheet-printer-advanced-example-fig">
168 <title><interface>Print Dialog Advanced Tab</interface></title>
171 <imagedata format="PNG"
172 fileref="figures/print-worksheet-printer-advanced.png" />
178 In the <guimenuitem>Advanced</guimenuitem> tab you can change several
179 options depending on the printer model you use.
186 <sect1 id="sect-printing-setup">
187 <title>Page Setup.</title>
189 The <interface>Page Setup Dialog</interface> can be used to
190 configure various options related to printing out a
191 workbook. Click on <menuchoice> <guimenu>File Menu</guimenu>
192 <guimenuitem>Page Setup</guimenuitem> </menuchoice> to activate
193 the <interface>Page Setup</interface>.
198 Remember that at any time you can click on the <guibutton>Print
199 preview</guibutton> button to see what your document looks like
200 with your selected options. See the <xref
201 linkend="sect-printing-preview" />
206 Normally the specified settings apply only to the current sheet.
207 Select another sheet at the bottom of the
208 <interface>Page Setup Dialog</interface> or select
209 <guilabel>Apply to all sheets of this workbook</guilabel>. You
210 can also save your adjustments by activating the <guilabel>save as
211 default settings</guilabel> flag.
215 <sect2 id="print-setup-page">
216 <title>Page Setup Dialog - Page</title>
219 <figure id="print-setup-page-fig">
220 <title><interface>Print Setup Page Tab</interface></title>
223 <imagedata format="PNG"
224 fileref="figures/printing-setup-page.png" />
230 Change the paper type by clicking the <guibutton>Change Paper Type</guibutton> button.
232 <figure id="print-setup-page-paper-type-fig">
233 <title><interface>Print Setup Paper Type dialog</interface></title>
236 <imagedata format="PNG"
237 fileref="figures/printing-setup-page-paper-type.png" />
241 Select the preferred printer or choose Any Printer to see the formats
242 supported by all printers. Pick a <guilabel>paper size</guilabel> and
243 <guilabel>page orientation</guilabel> (portrait, landscape or reverse)
244 to suit the best layout for your document.
248 Specify the required <guilabel>margins</guilabel> of the page. Nothing will
249 be printed inside these margins, not even page numbers. The margins will be
250 measured in the same units (millimetres, points or inches) as the paper size.
251 Change the <guilabel>unit</guilabel> in the paper and layout section to best
252 fit your needs. You may also specify whether the page is centered <guilabel>
253 horizontally</guilabel> and/or <guilabel>vertically</guilabel> on the printable
258 <sect2 id="print-setup-scale">
259 <title>Page Setup Dialog - Scale</title>
261 <figure id="print-setup-scale-fig">
262 <title><interface>Print Setup Scale Tab</interface></title>
265 <imagedata format="PNG"
266 fileref="figures/printing-setup-scale.png" />
272 Select the scale applied while printing. You can choose between
273 <guilabel>no scaling</guilabel>, a <guilabel>fixed scaling</guilabel> or
274 <guilabel>automatic scaling</guilabel> to fit the workbook to a defined
275 number of paper sheets.
279 <sect2 id="print-setup-dialog-header">
280 <title>Page Setup Dialog - Headers and Footers</title>
282 <figure id="print-setup-header">
283 <title><interface>Print Setup Headers and Footers Tab</interface></title>
286 <imagedata format="PNG"
287 fileref="figures/printing-setup-header.png" />
293 Select a predefined format for either the header or the footer. You
294 can define an header or a footer by clicking the <guibutton>Configure</guibutton>
295 button next to the according drop-down field.
298 <figure id="print-setup-header-config">
299 <title><interface>Print Setup Headers and Footers Configure Dialog</interface></title>
302 <imagedata format="PNG"
303 fileref="figures/printing-setup-header-config.png" />
309 Headers and footers are divided into left, center and right area. Select
310 the area you want to change. Insert a user-defined text or just select one
311 or several of the given options. When selecting <guibutton>time</guibutton>
312 and/or <guibutton>date</guibutton> you may choose the format by clicking on
313 the arrow next to the symbol and click on the preferred option. Beside the
314 according <guibutton>page</guibutton> number, the number of total <guibutton>
315 pages</guibutton> and the name of the according worksheet, you may also insert
316 the <guibutton>file</guibutton> name and/or <guibutton>path</guibutton>.
317 Finally you can select a defined <guibutton>cell</guibutton> to appear in the
318 header/footer. Additionally there are a number of special <keycap>opcodes</keycap>
319 for common options. These are:
324 <term>&[TAB]</term>
327 Name of the worksheet.
332 <term>&[PAGE]</term>
335 Page number in the printing.
340 <term>&[PAGES]</term>
343 Total number of pages in the printout.
348 <term>&[DATE]</term>
351 Current date in format dd-mmm-yyyy.
352 The format can be changed by specifying the desired format in the opcode:
353 <literal>&[DATE:yyyy/mm/dd]</literal>.
358 <term>&[TIME]</term>
361 Current time in format hh:mm.
362 The format can be changed by specifying the desired format in the opcode:
363 <literal>&[TIME:hh:mm:ss]</literal>.
368 <term>&[FILE]</term>
371 The basename of the file. For the file <literal>/home/jdoe/file.gnumeric</literal>,
372 this opcode prints <literal>file.gnumeric</literal>.
377 <term>&[PATH]</term>
380 The path of the file excluding the basename.
381 For the file <literal>/home/jdoe/file.gnumeric</literal>, this opcode prints
382 <literal>/home/jdoe/</literal>.
387 <term>&[CELL:$A$1]</term>
390 The content of the cell <literal>$A$1</literal> on the sheet being printed. Instead of <literal>$A$1</literal> any other absolutely addressed cell may be used.
395 <term>&[CELL:A1]</term>
398 The content of the top left cell on the current page. Instead of <literal>A1</literal> 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.
403 <term>&[CELL:rep|A1]</term>
406 The content of the top left cell on the current page. Instead of <literal>A1</literal> 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.
415 You can choose the font in which the header and footer is printed by
416 selecting a default header/footer font in the preferences (see in <xref
417 linkend="sect-configuration-preferences" />).
424 Double clicking on the header or footer preview will quickly
425 allow you to customize that header or footer.
430 <sect2 id="print-setup-dialog-printarea">
431 <title>Page Setup Dialog - Print Area</title>
433 <figure id="print-setup-printarea">
434 <title><interface>Print Setup Print Area Tab</interface></title>
437 <imagedata format="PNG"
438 fileref="figures/printing-setup-printarea.png" />
443 You can select rows or columns to be printed on every page of
444 the output. This is commonly used for printing column or row
445 names. To enable this, enter the range of cells to be
446 repeated in <guilabel>Rows to repeat...</guilabel> or
447 <guilabel>Columns to repeat...</guilabel> field. Instead of
448 entering them manually, you can also select columns or rows to
449 be repeated using the mouse.
453 <title>WARNING</title>
455 Note that the rows and columns must be entered as ranges.
456 That is, if you want to have first row repeated, you
457 must enter <literal>1:1</literal>, not just
458 <literal>1</literal>. Similarly, to have column
459 <literal>A</literal> repeated, you must enter
460 <literal>A:A</literal>.
466 <sect2 id="print-setup-dialog-sheet">
467 <title>Page Setup Dialog - Sheet</title>
469 <figure id="print-setup-sheet">
470 <title><interface>Print Setup Sheet Tab</interface></title>
473 <imagedata format="PNG"
474 fileref="figures/printing-setup-sheet.png" />
480 Select <guilabel>Grid lines</guilabel> to print the cell
481 grid lines with your document. Unselect the button to hide
482 the grid lines from your print output.
486 Select <guilabel>Black and white</guilabel> to convert the
487 colours in your document to a greyscale range.
491 Select <guilabel>Do not print with all sheets</guilabel> if you
492 want to avoid printing this sheet whenever you choose to print
493 <guilabel>all sheets</guilabel>. If this item is checked then
494 this sheet will only be printed as the active sheet or as part
495 of a range of sheets.
496 This is useful if you have a non-hidden sheet that contains only
497 auxillary information and should normally not be printed.
501 Select <guilabel>Row and column headings</guilabel> to
502 print the row and column headings (1,2,3,... and A,B,C,...).
506 Select <guilabel>Styles with no content</guilabel> to
507 ensure cells with style changes will be printed, even if
508 they are empty. For example, if you have a number of cells
509 with the background color changed but no data in them, you
510 can select this option to ensure they are in the printed
515 The <guilabel>Errors</guilabel> selection box allows you to
516 choose how to print error values:
519 <term>Print as displayed</term>
522 Every error value is printed just as shown on the worksheet.
527 <term>Print as spaces</term>
530 No error values are printed.
535 <term>Print as dashes</term>
538 Every error value is replaced by two m-dashes (separated
539 by a thin space): "— —".
544 <term>Print as NA</term>
547 Every error value is printed as an #N/A error.
555 Finally you can decide about the direction in which the
556 workbook will be printed (Down, then right or Right, then
563 <sect1 id="sect-printing-preview">
564 <title>Print Preview</title>
567 The <interface>Print Preview Dialog</interface> is used to display
568 what the printed output will look like. The <interface>Print Preview
569 dialog</interface> can be used to check whether you have the desired
570 formatting and layout before you print out the workbook.
571 <application>Evince</application> is set up to be the default viewer.
574 <sect2 id="print-preview-customizing">
575 <title>Customizing the preview application</title>
578 You may change the default preview application by editing your
579 presets for GTK. Open the file .gtkrc-<replaceable>your GTK version</replaceable>
580 and add a line in the format
581 <command>gtk-print-preview-command="<replaceable>command to your preferred
582 viewer</replaceable>"</command>.
586 Please make sure you have only one line defining your preview application.
592 It is strongly recommended to use <application>Evince</application> as the
593 default viewer. A convincing argument is that <application>Evince</application>
594 deletes the preview file after closing the viewer.