Accessing Other Data Sources

From Apache OpenOffice Wiki
Jump to: navigation, search




Accessing Other Data Sources

OpenOffice allows data sources to be accessed and then linked into AOO documents. For example, a mail merge links an external document containing a list of names and addresses into a letter, with one copy of the letter being generated for each entry.

To access an external data source:

  1. File → New → Database opens the Database Wizard window.
  2. Select Connect to an existing database. Click the arrow next to the Database type field and select the database type from the drop-down list. Click  Next .
  3. Click Browse and select the database. Click  Next .
  4. Accept the default settings: Register the database for me, and Open the database for editing. Click  Finish . Name and save the Base file in the location of your choice.

Accessing a Spreadsheet as a Data Source

Accessing a spreadsheet is similar to accessing other databases:

  1. Choose File → New → Database.
  2. Select Connect to an existing database. Select Spreadsheet as the Database type. Click Next.
  3. Click Browse to locate the spreadsheet you want to access. If the spreadsheet is password protected, check the Password required box. Click  Next .
  4. You can now choose to register the database, so that it is available to other OpenOffice documents, and to open it for editing. Click  Next .
  5. Name and save the database file as you would any other document. If you have chosen to open it and it requires a password, you will see a prompt for the password.
Documentation note.png Using this method of accessing a spreadsheet, you cannot change anything in the spreadsheet. You can only view the contents of the spreadsheet, run queries, and create reports based upon the data already entered into the spreadsheet.

All changes in a spreadsheet must be made in the spreadsheet itself, using Calc. After modifying the spreadsheet and saving it, you will see the changes in the database. If you create and save an additional sheet in your spreadsheet, the database will have a new table the next time you access it.

Registering *.odb Databases

Registering a *.odb database is simple:

  1. Choose Tools → Options → OpenOffice Base → Databases.
  2. Under Registered databases, click  New .
  3. Browse to where the database is located.
  4. Make sure the registered name is correct.
  5. Click  OK .
Personal tools