1*cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2*cdf0e10cSrcweir<helpdocument version="1.0"> 3*cdf0e10cSrcweir 4*cdf0e10cSrcweir<!-- 5*cdf0e10cSrcweir*********************************************************************** 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 12*cdf0e10cSrcweir * 13*cdf0e10cSrcweir * This file is part of OpenOffice.org. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 16*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 17*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 18*cdf0e10cSrcweir * 19*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 20*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 21*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 23*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 24*cdf0e10cSrcweir * 25*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 26*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 27*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 28*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 29*cdf0e10cSrcweir * 30*cdf0e10cSrcweir ************************************************************************ 31*cdf0e10cSrcweir --> 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir 34*cdf0e10cSrcweir<meta> 35*cdf0e10cSrcweir <topic id="textscalcguidedbase_filesxhp" indexer="include" status="PUBLISH"> 36*cdf0e10cSrcweir <title xml-lang="en-US" id="tit">Importing and Exporting dBASE Files </title> 37*cdf0e10cSrcweir <filename>/text/scalc/guide/dbase_files.xhp</filename> 38*cdf0e10cSrcweir </topic> 39*cdf0e10cSrcweir </meta> 40*cdf0e10cSrcweir <body> 41*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id1226844"><bookmark_value>exporting;spreadsheets to dBASE</bookmark_value> 42*cdf0e10cSrcweir <bookmark_value>importing;dBASE files</bookmark_value> 43*cdf0e10cSrcweir <bookmark_value>dBASE import/export</bookmark_value> 44*cdf0e10cSrcweir <bookmark_value>spreadsheets; importing from/exporting to dBASE files</bookmark_value> 45*cdf0e10cSrcweir <bookmark_value>tables in databases;importing dBASE files</bookmark_value> 46*cdf0e10cSrcweir</bookmark><comment>mw changed "database tables;" to "tables in databases;" and reduced "spreadsheets;" from two to one entry</comment> 47*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN10738" role="heading" level="1" l10n="NEW"><variable id="dbase_files"><link href="text/scalc/guide/dbase_files.xhp">Importing and Exporting dBASE Files</link> 48*cdf0e10cSrcweir</variable></paragraph> 49*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN10756" role="paragraph" l10n="CHG">You can open and save data in the dBASE file format (*.dbf file extension) in $[officename] Base or a spreadsheet. In %PRODUCTNAME Base, a dBASE database is a folder that contains files with the .dbf file extension. Each file corresponds to a table in the database. Formulas and formatting are lost when you open and save a dBASE file from %PRODUCTNAME.</paragraph> 50*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN10759" role="heading" level="2" l10n="NEW">To Import a dBASE File Into a Spreadsheet</paragraph> 51*cdf0e10cSrcweir <list type="ordered"> 52*cdf0e10cSrcweir <listitem> 53*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN10760" role="paragraph" l10n="NEW">Choose <emph>File - Open</emph>.</paragraph> 54*cdf0e10cSrcweir </listitem> 55*cdf0e10cSrcweir <listitem> 56*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN1071F" role="paragraph" l10n="NEW">Locate the *.dbf file that you want to import. </paragraph> 57*cdf0e10cSrcweir </listitem> 58*cdf0e10cSrcweir <listitem> 59*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN10768" role="paragraph" l10n="NEW">Click <emph>Open</emph>.</paragraph> 60*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN10730" role="paragraph" l10n="NEW">The <emph>Import dBASE files</emph> dialog opens.</paragraph> 61*cdf0e10cSrcweir </listitem> 62*cdf0e10cSrcweir <listitem> 63*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN10774" role="paragraph" l10n="NEW">Click <emph>OK</emph>.</paragraph> 64*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN10777" role="paragraph" l10n="NEW">The dBASE file opens as a new Calc spreadsheet.</paragraph> 65*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN1074E" role="warning" l10n="NEW">If you want to save the spreadsheet as a dBASE file, do not alter or delete the first row in the imported file. This row contains information that is required by a dBASE database.</paragraph> 66*cdf0e10cSrcweir </listitem> 67*cdf0e10cSrcweir </list> 68*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN1077A" role="heading" level="2" l10n="NEW">To Import a dBASE File Into a Database Table</paragraph> 69*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN1076C" role="paragraph" l10n="NEW">A %PRODUCTNAME Base database table is actually a link to an existing database.</paragraph> 70*cdf0e10cSrcweir <list type="ordered"> 71*cdf0e10cSrcweir <listitem> 72*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN10796" role="paragraph" l10n="NEW">Choose <item type="menuitem">File - New - Database</item>.</paragraph> 73*cdf0e10cSrcweir </listitem> 74*cdf0e10cSrcweir <listitem> 75*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN10786" role="paragraph" l10n="NEW">In the <emph>File name</emph> box of the <emph>Save As</emph> dialog, enter a name for the database.</paragraph> 76*cdf0e10cSrcweir </listitem> 77*cdf0e10cSrcweir <listitem> 78*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN10792" role="paragraph" l10n="NEW">Click <emph>Save</emph>.</paragraph> 79*cdf0e10cSrcweir </listitem> 80*cdf0e10cSrcweir <listitem> 81*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN1079A" role="paragraph" l10n="NEW">In the <emph>Database type </emph>box of the <emph>Database Properties</emph> dialog, select "dBASE".</paragraph> 82*cdf0e10cSrcweir </listitem> 83*cdf0e10cSrcweir <listitem> 84*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN107A6" role="paragraph" l10n="NEW">Click <emph>Next</emph>.</paragraph> 85*cdf0e10cSrcweir </listitem> 86*cdf0e10cSrcweir <listitem> 87*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN107AE" role="paragraph" l10n="NEW">Click <emph>Browse</emph>.</paragraph> 88*cdf0e10cSrcweir </listitem> 89*cdf0e10cSrcweir <listitem> 90*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN107B6" role="paragraph" l10n="NEW">Locate the directory that contains the dBASE file, and click <emph>OK</emph>.</paragraph> 91*cdf0e10cSrcweir </listitem> 92*cdf0e10cSrcweir <listitem> 93*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN107BE" role="paragraph" l10n="NEW">Click <emph>Create</emph>.</paragraph> 94*cdf0e10cSrcweir </listitem> 95*cdf0e10cSrcweir </list> 96*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN107F1" role="heading" level="2" l10n="NEW">To Save a Spreadsheet as a dBASE File</paragraph> 97*cdf0e10cSrcweir <list type="ordered"> 98*cdf0e10cSrcweir <listitem> 99*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN107F8" role="paragraph" l10n="NEW">Choose <emph>File - Save As</emph>.</paragraph> 100*cdf0e10cSrcweir </listitem> 101*cdf0e10cSrcweir <listitem> 102*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN10800" role="paragraph" l10n="NEW">In the <emph>File format</emph> box, select "dBASE file".</paragraph> 103*cdf0e10cSrcweir </listitem> 104*cdf0e10cSrcweir <listitem> 105*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN107F9" role="paragraph" l10n="NEW">In the <emph>File name</emph> box, type a name for the dBASE file.</paragraph> 106*cdf0e10cSrcweir </listitem> 107*cdf0e10cSrcweir <listitem> 108*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN10801" role="paragraph" l10n="NEW">Click <emph>Save</emph>.</paragraph> 109*cdf0e10cSrcweir </listitem> 110*cdf0e10cSrcweir </list> 111*cdf0e10cSrcweir <paragraph xml-lang="en-US" id="par_idN10808" role="note" l10n="NEW">Only the data on the current sheet is exported.</paragraph> 112*cdf0e10cSrcweir <section id="relatedtopics"> 113*cdf0e10cSrcweir <embed href="text/shared/guide/data_im_export.xhp#data_im_export"/> 114*cdf0e10cSrcweir <embed href="text/shared/guide/data_dbase2office.xhp#data_dbase2office"/> 115*cdf0e10cSrcweir </section> 116*cdf0e10cSrcweir </body> 117*cdf0e10cSrcweir</helpdocument>