- Click Start | All Programs | LibreOffice 4.0 | LibreOffice.
- Click Text Document.
A blank Writer document appears.
- Press F4.
The Data Source pane appears.
- Expand the database nodes until the desired table e.g. biblio, is visible.
- Drag and drop the table onto the blank document.
The Insert Database Columns dialog box appears.
- Toggle on Text.
- Select a Database column to export, e.g. Booktitle. Then click >. Repeat for additional columns, e.g. Author and Publisher.
- Edit the format string to include a comma or any other delimiter between the columns.
- Click OK.
The table data is placed on the document.
- Select File | Save As.
The Save As dialog box appears.
- Type in a file name e.g. mycsvfile. Choose the type as Text. Click Save.
The CSV file is created.
Monday, May 13, 2013
Export a LibreOffice Base table as a CSV file
Previously I use Microsoft Access to manipulate and export out table data as comma separated values (CSV) files. I decided to use LibreOffice Base to do the same thing. It wasn't difficult to create CSV files in LibreOffice but the concept is different than Microsoft Office's. In LibreOffice, you have to create the text file document first before dragging the source table into the document. It took me a while to figure this out. The following steps illustrate how to do it.