Accessing a Data Source in Writer or Calc


Follow these steps to grab data from your database and insert it into your Writer documents.

Select New > Text Document. The procedures work almost exactly the same way for Calc.

Select Data Sources under the View tab. A new window appears with a listing of all the registered database names. Click Data Sources again to hide the window.

In the data sources window, click the database you set up in Base. Click the + in a box to the left of the Tables icon to show which ones are available. Click the table name to make the records appear. The sample database includes only the name, street, city, state, and zip.

Using the data sources window to insert data into a document.

To paste a field from the database into your document, click the record field and drag it where you want it in the Writer editing window. In this example, the George, Herb, and Rich names are individually pulled down into the customer list.

Dragging data into the document.

Click the box in the table's upper-left corner (just left of the names) to highlight all the fields. Then click the Data to Text button (the icon to the right of the funnel iconstext with little right arrow). Use the resulting window to drag down the fields as a table, fields, or text.

Dragging data as a table, fields, or text.

Enable the Text radio button, and then select and arrange the fields.

Arranging fields with the Text radio button.

Click OK. The contents of each record are copied into the document. This is a great way to make a list of addresses. Use this technique with other types of data to make basic text-oriented reports. Regular corporate-level reports will be discussed a little later.

Copying the contents of each record into a document.

Highlighting a row (clicking the box to the left of the first field) and then clicking the Data to Text button copies the contents of that row into your document.

Copying a row of data into your document as text.

To create a table in your document instead of formatted text lists, use the Table radio button under the "data to text" button. This example uses only the name and city fields.

Copying a row of data into your document as a table.




Point & Click OpenOffice. org.
Point & Click OpenOffice.org
ISBN: 0131879928
EAN: 2147483647
Year: 2003
Pages: 143
Authors: Robin Miller

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net