106 lines
No EOL
6.4 KiB
XML
106 lines
No EOL
6.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<helpdocument version="1.0">
|
|
|
|
<!--
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* This file incorporates work covered by the following license notice:
|
|
*
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
* with this work for additional information regarding copyright
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
-->
|
|
|
|
|
|
<meta>
|
|
<topic id="textscalcguidedbase_filesxhp" indexer="include" status="PUBLISH">
|
|
<title xml-lang="en-US" id="tit">Importing and Exporting dBASE Files </title>
|
|
<filename>/text/scalc/guide/dbase_files.xhp</filename>
|
|
</topic>
|
|
</meta>
|
|
<body>
|
|
<bookmark xml-lang="en-US" branch="index" id="bm_id1226844"><bookmark_value>exporting;spreadsheets to dBASE</bookmark_value>
|
|
<bookmark_value>importing;dBASE files</bookmark_value>
|
|
<bookmark_value>dBASE import/export</bookmark_value>
|
|
<bookmark_value>spreadsheets; importing from/exporting to dBASE files</bookmark_value>
|
|
<bookmark_value>tables in databases;importing dBASE files</bookmark_value>
|
|
</bookmark><comment>mw changed "database tables;" to "tables in databases;" and reduced "spreadsheets;" from two to one entry</comment>
|
|
<paragraph xml-lang="en-US" id="par_idN10738" role="heading" level="1"><variable id="dbase_files"><link href="text/scalc/guide/dbase_files.xhp">Importing and Exporting dBASE Files</link>
|
|
</variable></paragraph>
|
|
<paragraph xml-lang="en-US" id="par_idN10756" role="paragraph">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>
|
|
<h2 id="par_idN10759">To Import a dBASE File Into a Spreadsheet</h2>
|
|
<list type="ordered">
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_idN10760" role="paragraph">Choose <emph>File - Open</emph>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_idN1071F" role="paragraph">Locate the *.dbf file that you want to import. </paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_idN10768" role="paragraph">Click <emph>Open</emph>.</paragraph>
|
|
<paragraph xml-lang="en-US" id="par_idN10730" role="paragraph">The <emph>Import dBASE files</emph> dialog opens.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_idN10774" role="paragraph">Click <emph>OK</emph>.</paragraph>
|
|
<paragraph xml-lang="en-US" id="par_idN10777" role="paragraph">The dBASE file opens as a new Calc spreadsheet.</paragraph>
|
|
<paragraph xml-lang="en-US" id="par_idN1074E" role="warning">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>
|
|
</listitem>
|
|
</list>
|
|
<h2 id="par_idN1077A">To Import a dBASE File Into a Database Table</h2>
|
|
<paragraph xml-lang="en-US" id="par_idN1076C" role="paragraph">A %PRODUCTNAME Base database table is actually a link to an existing database.</paragraph>
|
|
<list type="ordered">
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_idN10796" role="paragraph">Choose <item type="menuitem">File - New - Database</item>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_idN10786" role="paragraph">In the <emph>File name</emph> box of the <emph>Save As</emph> dialog, enter a name for the database.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_idN10792" role="paragraph">Click <emph>Save</emph>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_idN1079A" role="paragraph">In the <emph>Database type </emph>box of the <emph>Database Properties</emph> dialog, select "dBASE".</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_idN107A6" role="paragraph">Click <emph>Next</emph>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_idN107AE" role="paragraph">Click <emph>Browse</emph>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_idN107B6" role="paragraph">Locate the directory that contains the dBASE file, and click <emph>OK</emph>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_idN107BE" role="paragraph">Click <emph>Create</emph>.</paragraph>
|
|
</listitem>
|
|
</list>
|
|
<h2 id="par_idN107F1">To Save a Spreadsheet as a dBASE File</h2>
|
|
<list type="ordered">
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_idN107F8" role="paragraph">Choose <emph>File - Save As</emph>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_idN10800" role="paragraph">In the <emph>File format</emph> box, select "dBASE file".</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_idN107F9" role="paragraph">In the <emph>File name</emph> box, type a name for the dBASE file.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph xml-lang="en-US" id="par_idN10801" role="paragraph">Click <emph>Save</emph>.</paragraph>
|
|
</listitem>
|
|
</list>
|
|
<paragraph xml-lang="en-US" id="par_idN10808" role="note">Only the data on the current sheet is exported.</paragraph>
|
|
<section id="relatedtopics">
|
|
<embed href="text/shared/guide/data_im_export.xhp#data_im_export"/>
|
|
<embed href="text/shared/guide/data_dbase2office.xhp#data_dbase2office"/>
|
|
</section>
|
|
</body>
|
|
</helpdocument> |