reports using the Next-Record Field
This approach is more useful if you have a specific layout you need to use, or if you simply prefer this approach. The drag-all-at-once approach from the last section is fine, but the layout doesn't look that good.
Let's say you want to print a list of information like this, with tabs between the columns but not in tables.
Name Address Birthday
John Bertram 401 East Mulberry June 21, 1964
Miranda Worthington 12 Ludlow April 9, 1971
Here's what you do to get a nice layout, a connection with the database and multiple records on the same page. You drag out each field separately, separating with tabs or the like. Paste that row of fields into the next line and insert the Go to Next Record field in front of that second line. Then copy that second line all the way down the page.
- Create a new text document and press F4.
- Click the + icon to expand the database and table or query you want to use.
- Create some headings and set the tabs as appropriate. And, for a reason that will become clear in a second, press a tab before you type the first heading. It should look like this.
[IMAGE]
- Click on the first field you want -- the title of the field, not the data. Drag it into your document under the first line of headings.
[IMAGE]
- Press Tab and drag the next field into the document. Keep going until you're done.
[IMAGE]
- Select the entire line. Copy it, press Return at the end of the line and paste it. You now have two lines of fields, and all lines have a tab preceding them.
[IMAGE]
- Click at the beginning of the second line of data, before the tab.
[IMAGE]
- Choose Insert > Fields > Other. In the Databases tab, select Next Record in the Type column, then select the database and table or query you're using, and click Insert.
[IMAGE]
- The field appears, but only as a faint gray field. This is why you created the tabs, so that you could see the inserted Next Record field. If you insert it next to another field, it's difficult or impossible to see, and it's hard to be certain you've selected it.
[IMAGE]
- Now, it's time to copy that line down through the rest of the document. Copy the line with the Next Record field preceding it, and copy it until you've filled the document.
[IMAGE]
- Click the gray square indicated, to preview your data.
[IMAGE]
- Click the Data to Fields icon. You'll see the data in the document. The gray Next Record field won't print.
[IMAGE]
Benefits of advanced OpenOffice tasks
Feeling a little tired? You should. This is a typical OpenOffice process, in that you can do lots of advanced procedures, but what to do is not obvious. In OpenOffice, there are usually several approaches, each with its own benefits and drawbacks. It's good to have a choice, but you have to know how to exploit the choices. These tips should give you some options.
Work is being done on Report Writer, and it will get more civilized. That's life on the frontier of office suites. My advice is to make the best of things until the report tool gets a bit more civilized. Enjoy the adventure of being a pioneer.
Solveig Haugland has worked as an instructor, course developer,
author and technical writer in the high-tech industry for 15 years, for
employers including Microsoft Great Plains, Sun Microsystems,and BEA.
Currently, Solveig is a StarOffice and OpenOffice.org instructor,
author, and freelance technical writer. She is also co-author, with
Floyd Jones, of three books: Staroffice 5.2 Companion, Staroffice 6.0
Office Suite Companion and OpenOffice.Org 1.0 Resource Kit, published
by Prentice Hall PTR. Her fourth book, on OpenOffice.org 2.0, is coming this summer. For
more tips on working in OpenOffice, visit Solveig's OpenOffice blog.
Did you find this tip useful? Email us and let us know.