Printing in OpenOffice.org Calc, Part I: Page styles
November 19th, 2006 by Bruce Byfield
Spreadsheets are primarily used online. For this reason, printing them can be challenging even to experienced users. However, OpenOffice.org offers more help than most spreadsheets with printing, starting with the introduction of page styles. In this entry, I'll explain how Calc page styles can help with printing spreadsheets. In Part II, I'll continue by explaining the other tools available for printing in Calc.
If you use page styles in Writer, seeing them in Calc can be deceptive. Calc page styles have many of the same options as they do in Writer, and, on some tabs for style settings, you might almost believe you were in Writer. Yet the truth is, page styles offer fewer advantages in Calc than in Writer. Nor are they nearly as easy to setup and use.
Think about the differences between the two applications,and the reason is obvious. In Writer, a page style has a direct relation to the dimensions of the physical page. You can set the page size in the style, and what you see on the screen corresponds to the setting, a few editing aids accepted.
By contrast, although you can set the page size for printing, like most spreadsheets, Calc makes no attempt to display the page style on the screen. Nine times out of ten, the attempt would be pointless, since most spreadsheets are never printed. If you do want a spreadsheet to fit on a certain page size, you have to careful control the column width and row height, with only File > Page Preview and your grasp of basic arithmetic to guide you.
Because of this situation, an applied Calc page style, unlike a page style in Writer, is not visible on the screen. You have to open File > Page Preview before you can see any of it. Even then, some of the formatting is only visible as far as the last cell with content. These limitations make Calc pages difficult to work with, especially if you approach them with Writer pages in mind.
Setting up page styles
As in Writer, the Style and Formatting floating window opens in Calc when you press the F11 key, or select Format > Styles and Formatting, then right-click on an existing style to modify it or create a new one.
Always remember, though, that Cal page styles are more limited than Writers'. Calc applies page styles to each print job in its entirety, so the Next Style field on the Organizer tab is grayed out. Nor does the tab need the Linked with field, because Calc page styles are not hierarchical. In fact, whereas some Writer documents can easily make good use of a dozen different page styles, the average Calc spreadsheet can usually get along with modifications to the existing Default and Report styles. Probably, you do not even need to add an underscore or asterisk to the style name to place it at the top of the list in the floating window, so that you can easily find it.
The Border and Background tabs for pages duplicate the tabs of the same name on cell styles, and are over-ridden by the cell style or manual settings. Since over-rides in Calc do not greatly increase your efforts, the way they do in Writer, you may choose to ignore the Border and Background tabs altogether in page styles, and focus on using them to prepare for the possibility of printing your spreadsheets. However, if you do use them, you'll find that the Border tab contains the expected options for customizing the borders around cells, including their location, the thickness of their lines, and the distance between cell contents. Similarly, the Background tab gives you the option of using a color or a graphic file for fill. Both tabs are illustrated with helpful diagrams, and will be familiar to anyone who has used similarly named tabs elsewhere in OpenOffice.org.
Rather, the place to start with page styles is the Page tab. The settings on this tab are not arcane; they include the settings for page formats, orientation, margins, two-page spreads, and page numbering, exactly as you might expect. In many cases, you probably won't want to make many changes to them, but, as you are designing your spreadsheets, you should stop for a look if there is even a chance that you'll be printing so you know the column width and the number of rows you'll be using. Many times, you won't be able to restrain the spreadsheet width so easily, but doing so is always worth a try. Otherwise, if a need for printing does arise, you may lose time to trial and error that you just don't have.
As for the Header and Footer tabs, the main point in both is to add these items to each printed page. Headers and footers are more limited in Calc than in Writer. In particular, you'll find yourself limited to a single one of each, a reflection of the relative unimportance of printing for spreadsheets. However, if you choose, you can define the margins and heights of your headers and footers, and tart them up by pressing the More button to choose borders and backgrounds especially for them.
However, by far the most important settings for Calc page styles are on the Sheet tab. Although the Sheet tab includes an option that sets the first page option, most of its settings involve exactly how your spreadsheet will print.
Most of settings are in the Print pane, where you select which elements are printed. Some of the defaults are obvious. After all, why would you add a graphic and not print it? Or choose in most cases to print a formula rather than its result? However, you might want to print the row and column and headers as well as the grid, so that the printout looks like a spreadsheet, and, in some cases, to print notes.
Other options on the sheet tab set the mechanics of how your spreadsheet prints. In the Page Order pane, you set how a print job handles columns that are wider than the page: by printing first all the rows in the existing columns then moving on to the remaining columns, or printing all the tops of the column first, and the remaining rows later (a convenient diagram explains your choice if you find the description confusing).
The Scaling pane offers other alternatives to spreadsheets that don't fit a page. In a drop-down list, you can choose to reduce or enlarge a printout by the percentage you specify, or fit what you are printing to a defined width and height or a specified number of pages. These alternatives aren't always practical if readability is your goal, but they are easier to work with much of the time than setting the page order.
Formatting by other means
While Writer makes page styles unavoidable if you want complex layouts -- or even multiple footers and headers -- Calc takes a more relaxed approach to page styles. If you never plan to print, or your spreadsheets are short, then you can ignore page styles altogether.
Instead, you might prefer to focus on cell styles, which are more immediately useful. Like page styles, cell styles have settings for backgrounds and borders. Moreover, since you can apply them to any cells you have selected, they are only somewhat less convenient for physical formatting. Their only real drawback is a lack of headers and footers if you print, unless you take the time to set them up manually.
In addition to cell styles -- or in place of them -- you can apply formatting to your entire spreadsheet by selecting Format > AutoFormat. Frankly, many of the pre-defined formats are garish beyond belief, but you can use the Add button to define your own autoformats. You can also use the Choose Theme icon to choose among the built-in, unalterable themes that come with Calc, although, depending on where your version of OpenOffice.org originated, you may need to select Tools > Customize > Toolbars and add the Choose Themes icon to a toolbar.
However, if printing is even a possibility, save yourself grief and turn to page styles. They may be as necessary as their Writer equivalents, but, once you understand them, they can eliminate a lot of guesswork.
Bruce Byfield is a computer journalist who writes primarily for the Linux Journal and NewsForge sites.
__________________________
--
Bruce Byfield (nanday)
Special Magazine Offer -- Free Gift with Subscription
Receive a free digital copy of Linux Journal's System Administration Special Edition as well as instant online access to current and past issues. CLICK HERE for offer
Linux Journal: delivering readers the advice and inspiration they need to get the most out of their Linux systems since 1994.
Subscribe now!
The Latest
Newsletter
Tech Tip Videos
- Jul-01-09
- Jun-29-09
Recently Popular
From the Magazine
July 2009, #183
News Flash: Linux Kernel 3.0 to include an on-the-go Expresso machine interface! Ok, maybe not, but Linux is definitely going mobile, from phones to e-readers. Find out more inside about Android, the Kindle 2, the Western Digital MyBook II, The Bug, and Indamixx (a portable recording studio). And if you've gone mobile and you been wanting more Emacs in your life then check out Conkeror.
To compliment the mobile we've got the stationary: parsing command line options with getopt, checking your Ruby code with metric_fu, and building a secure Squid proxy. How is this stationary you ask? What can we say? It's not. We just wanted to see if anybody actually read this part of the page :) .
All this and more, and all you have to do is get your hot sweaty hands on the latest copy of Linux Journal.
Delicious
Digg
StumbleUpon
Reddit
Facebook








very informative
On August 1st, 2008 lic2 (not verified) says:
very good sharing...good jobs!
cost of teeth whitening
We think this is an
On September 30th, 2007 Home Refurbish Course (not verified) says:
We think this is an inspiring article.
I really enjoyed this
On September 18th, 2007 new thumbs daily (not verified) says:
I really enjoyed this article.
minor typo
On December 1st, 2006 richlv (not verified) says:
it seems that there is a minor typo in the 4th paragraph : "you have to careful control"
Printing
On November 30th, 2006 David B (not verified) says:
One of the points about printing from Calc that is key is that it assumes you want to print the entire document. If you have a number of worksheets, this may not be what you intend. Selecting a page range is difficult when you don't know the number of pages prior worksheets may currently be "using". So the Key is to use "Print Range, Selection" to print only the current worksheet.
This may seem obvious for long time users of OO, but is not for MS migrators. Yes, spreedsheets are mostly used electronically, but do go to print here and there.
Fortunately its one of only a few "gotchas" that migrators may experience.
David
Another "gotcha" for Excel
On July 17th, 2007 Anonymous (not verified) says:
Another "gotcha" for Excel migrators is that Calc seems to default to a page margin of 0.00 - my laser printer doesn't print right to the edge, so I get text missing all around the edges spreadsheets that are printed out. If I print the same document from Excel, the margin is added automatically.
"Spreadsheets are primarily
On November 26th, 2006 Jorge Santos (not verified) says:
"Spreadsheets are primarily used online"!
This is not an accurate statement! I am a portuguese accountant and I use spreadsheets in my daily work. None of them is used online mostly because of confidential content.
Most of the spreadsheets used in Financial / Accounting departments ARE NOT used online.
Jorge Santos
Spreadsheets online and printing hp laserjet II
On December 6th, 2006 Anonymous (not verified) says:
"Spreadsheets are primarily used online"!
Maybe. But there are OO users who want to
print spreadsheets, which are wider than
paper (let's say A4) with older printers
(let's say HP Laserjet II).
OO does not perform very well. Narrow
spreadsheets are not a problem to the
aforementioned printer, but wider produce
service-error. Exactly the same document printed
by free Excel-viewer prints from EV perfectly.
Should this go to printer driver somebody...
i suppose 'online' here was
On November 30th, 2006 richlv (not verified) says:
i suppose 'online' here was meant more like 'in electronic form' :)
Post new comment