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