1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2cdf0e10cSrcweir
3ce44d6c1SAndrew Rist<!--***********************************************************
4*f8ac1a03Smseidel *
5ce44d6c1SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
6ce44d6c1SAndrew Rist * or more contributor license agreements.  See the NOTICE file
7ce44d6c1SAndrew Rist * distributed with this work for additional information
8ce44d6c1SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
9ce44d6c1SAndrew Rist * to you under the Apache License, Version 2.0 (the
10ce44d6c1SAndrew Rist * "License"); you may not use this file except in compliance
11ce44d6c1SAndrew Rist * with the License.  You may obtain a copy of the License at
12*f8ac1a03Smseidel *
13ce44d6c1SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
14*f8ac1a03Smseidel *
15ce44d6c1SAndrew Rist * Unless required by applicable law or agreed to in writing,
16ce44d6c1SAndrew Rist * software distributed under the License is distributed on an
17ce44d6c1SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18ce44d6c1SAndrew Rist * KIND, either express or implied.  See the License for the
19ce44d6c1SAndrew Rist * specific language governing permissions and limitations
20ce44d6c1SAndrew Rist * under the License.
21*f8ac1a03Smseidel *
22ce44d6c1SAndrew Rist ***********************************************************-->
23ce44d6c1SAndrew Rist
24*f8ac1a03Smseidel<helpdocument version="1.0">
25cdf0e10cSrcweir<meta>
26*f8ac1a03Smseidel<topic id="textscalcguidedbase_filesxhp" indexer="include" status="PUBLISH">
27*f8ac1a03Smseidel<title xml-lang="en-US" id="tit">Importing and Exporting dBASE Files</title>
28*f8ac1a03Smseidel<filename>/text/scalc/guide/dbase_files.xhp</filename>
29*f8ac1a03Smseidel</topic>
30*f8ac1a03Smseidel</meta>
31*f8ac1a03Smseidel<body>
32*f8ac1a03Smseidel<bookmark xml-lang="en-US" branch="index" id="bm_id1226844">
33*f8ac1a03Smseidel<bookmark_value>exporting;spreadsheets to dBASE</bookmark_value>
34*f8ac1a03Smseidel<bookmark_value>importing;dBASE files</bookmark_value>
35*f8ac1a03Smseidel<bookmark_value>dBASE import/export</bookmark_value>
36*f8ac1a03Smseidel<bookmark_value>spreadsheets; importing from/exporting to dBASE files</bookmark_value>
37*f8ac1a03Smseidel<bookmark_value>tables in databases;importing dBASE files</bookmark_value>
38cdf0e10cSrcweir</bookmark><comment>mw changed "database tables;" to "tables in databases;" and reduced "spreadsheets;" from two to one entry</comment>
39cdf0e10cSrcweir<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>
40cdf0e10cSrcweir</variable></paragraph>
41*f8ac1a03Smseidel<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>
42*f8ac1a03Smseidel<paragraph xml-lang="en-US" id="par_idN10759" role="heading" level="2" l10n="NEW">To Import a dBASE File Into a Spreadsheet</paragraph>
43*f8ac1a03Smseidel<list type="ordered">
44*f8ac1a03Smseidel<listitem>
45*f8ac1a03Smseidel<paragraph xml-lang="en-US" id="par_idN10760" role="paragraph" l10n="NEW">Choose <emph>File - Open</emph>.</paragraph>
46*f8ac1a03Smseidel</listitem>
47*f8ac1a03Smseidel<listitem>
48*f8ac1a03Smseidel<paragraph xml-lang="en-US" id="par_idN1071F" role="paragraph" l10n="NEW">Locate the *.dbf file that you want to import. </paragraph>
49*f8ac1a03Smseidel</listitem>
50*f8ac1a03Smseidel<listitem>
51*f8ac1a03Smseidel<paragraph xml-lang="en-US" id="par_idN10768" role="paragraph" l10n="NEW">Click <emph>Open</emph>.</paragraph>
52*f8ac1a03Smseidel<paragraph xml-lang="en-US" id="par_idN10730" role="paragraph" l10n="NEW">The <emph>Import dBASE files</emph> dialog opens.</paragraph>
53*f8ac1a03Smseidel</listitem>
54*f8ac1a03Smseidel<listitem>
55*f8ac1a03Smseidel<paragraph xml-lang="en-US" id="par_idN10774" role="paragraph" l10n="NEW">Click <emph>OK</emph>.</paragraph>
56*f8ac1a03Smseidel<paragraph xml-lang="en-US" id="par_idN10777" role="paragraph" l10n="NEW">The dBASE file opens as a new Calc spreadsheet.</paragraph>
57*f8ac1a03Smseidel<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>
58*f8ac1a03Smseidel</listitem>
59*f8ac1a03Smseidel</list>
60*f8ac1a03Smseidel<paragraph xml-lang="en-US" id="par_idN1077A" role="heading" level="2" l10n="NEW">To Import a dBASE File Into a Database Table</paragraph>
61*f8ac1a03Smseidel<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>
62*f8ac1a03Smseidel<list type="ordered">
63*f8ac1a03Smseidel<listitem>
64*f8ac1a03Smseidel<paragraph xml-lang="en-US" id="par_idN10796" role="paragraph" l10n="NEW">Choose <item type="menuitem">File - New - Database</item>.</paragraph>
65*f8ac1a03Smseidel</listitem>
66*f8ac1a03Smseidel<listitem>
67*f8ac1a03Smseidel<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>
68*f8ac1a03Smseidel</listitem>
69*f8ac1a03Smseidel<listitem>
70*f8ac1a03Smseidel<paragraph xml-lang="en-US" id="par_idN10792" role="paragraph" l10n="NEW">Click <emph>Save</emph>.</paragraph>
71*f8ac1a03Smseidel</listitem>
72*f8ac1a03Smseidel<listitem>
73*f8ac1a03Smseidel<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>
74*f8ac1a03Smseidel</listitem>
75*f8ac1a03Smseidel<listitem>
76*f8ac1a03Smseidel<paragraph xml-lang="en-US" id="par_idN107A6" role="paragraph" l10n="NEW">Click <emph>Next</emph>.</paragraph>
77*f8ac1a03Smseidel</listitem>
78*f8ac1a03Smseidel<listitem>
79*f8ac1a03Smseidel<paragraph xml-lang="en-US" id="par_idN107AE" role="paragraph" l10n="NEW">Click <emph>Browse</emph>.</paragraph>
80*f8ac1a03Smseidel</listitem>
81*f8ac1a03Smseidel<listitem>
82*f8ac1a03Smseidel<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>
83*f8ac1a03Smseidel</listitem>
84*f8ac1a03Smseidel<listitem>
85*f8ac1a03Smseidel<paragraph xml-lang="en-US" id="par_idN107BE" role="paragraph" l10n="NEW">Click <emph>Create</emph>.</paragraph>
86*f8ac1a03Smseidel</listitem>
87*f8ac1a03Smseidel</list>
88*f8ac1a03Smseidel<paragraph xml-lang="en-US" id="par_idN107F1" role="heading" level="2" l10n="NEW">To Save a Spreadsheet as a dBASE File</paragraph>
89*f8ac1a03Smseidel<list type="ordered">
90*f8ac1a03Smseidel<listitem>
91*f8ac1a03Smseidel<paragraph xml-lang="en-US" id="par_idN107F8" role="paragraph" l10n="NEW">Choose <emph>File - Save As</emph>.</paragraph>
92*f8ac1a03Smseidel</listitem>
93*f8ac1a03Smseidel<listitem>
94*f8ac1a03Smseidel<paragraph xml-lang="en-US" id="par_idN10800" role="paragraph" l10n="NEW">In the <emph>File format</emph> box, select "dBASE file".</paragraph>
95*f8ac1a03Smseidel</listitem>
96*f8ac1a03Smseidel<listitem>
97*f8ac1a03Smseidel<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>
98*f8ac1a03Smseidel</listitem>
99*f8ac1a03Smseidel<listitem>
100*f8ac1a03Smseidel<paragraph xml-lang="en-US" id="par_idN10801" role="paragraph" l10n="NEW">Click <emph>Save</emph>.</paragraph>
101*f8ac1a03Smseidel</listitem>
102*f8ac1a03Smseidel</list>
103*f8ac1a03Smseidel<paragraph xml-lang="en-US" id="par_idN10808" role="note" l10n="NEW">Only the data on the current sheet is exported.</paragraph>
104*f8ac1a03Smseidel<section id="relatedtopics">
105*f8ac1a03Smseidel<embed href="text/shared/guide/data_im_export.xhp#data_im_export"/>
106*f8ac1a03Smseidel<embed href="text/shared/guide/data_dbase2office.xhp#data_dbase2office"/>
107*f8ac1a03Smseidel</section>
108*f8ac1a03Smseidel</body>
109*f8ac1a03Smseidel</helpdocument>
110