1*cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2*cdf0e10cSrcweir 3*cdf0e10cSrcweir 4*cdf0e10cSrcweir 5*cdf0e10cSrcweir<!-- 6*cdf0e10cSrcweir *********************************************************************** 7*cdf0e10cSrcweir * 8*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 9*cdf0e10cSrcweir * 10*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 11*cdf0e10cSrcweir * 12*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 13*cdf0e10cSrcweir * 14*cdf0e10cSrcweir * This file is part of OpenOffice.org. 15*cdf0e10cSrcweir * 16*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 17*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 18*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 19*cdf0e10cSrcweir * 20*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 21*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 22*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 24*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 27*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 28*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 29*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 30*cdf0e10cSrcweir * 31*cdf0e10cSrcweir ************************************************************************ 32*cdf0e10cSrcweir --> 33*cdf0e10cSrcweir 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir <helpdocument version="1.0"> 36*cdf0e10cSrcweir<meta> 37*cdf0e10cSrcweir<topic id="textsharedguidedata_dbase2officexml" indexer="include" status="PUBLISH"> 38*cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Importing and Exporting Data in Text Format</title> 39*cdf0e10cSrcweir<filename>/text/shared/guide/data_dbase2office.xhp</filename> 40*cdf0e10cSrcweir</topic> 41*cdf0e10cSrcweir</meta> 42*cdf0e10cSrcweir<body> 43*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id3157896"><bookmark_value>databases; text formats</bookmark_value> 44*cdf0e10cSrcweir<bookmark_value>text formats; databases</bookmark_value> 45*cdf0e10cSrcweir<bookmark_value>importing; tables in text format</bookmark_value> 46*cdf0e10cSrcweir<bookmark_value>exporting; spreadsheets to text format</bookmark_value> 47*cdf0e10cSrcweir</bookmark> 48*cdf0e10cSrcweir<paragraph role="heading" id="hd_id3154824" xml-lang="en-US" level="1" l10n="U" oldref="55"><variable id="data_dbase2office"><link href="text/shared/guide/data_dbase2office.xhp" name="Importing and Exporting Data in Text Format">Importing and Exporting Data in Text Format</link> 49*cdf0e10cSrcweir</variable></paragraph> 50*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3147088" xml-lang="en-US" l10n="U" oldref="54">If you want to exchange data with a database that does not have an ODBC link and does not allow dBASE import and export, you can use a common text format.</paragraph> 51*cdf0e10cSrcweir<paragraph role="heading" id="hd_id3145313" xml-lang="en-US" level="2" l10n="U" oldref="41">Importing Data into $[officename]</paragraph> 52*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3147275" xml-lang="en-US" l10n="U" oldref="40">To exchange data in a text format use the $[officename] Calc import/export filter.</paragraph> 53*cdf0e10cSrcweir<list type="ordered"> 54*cdf0e10cSrcweir<listitem> 55*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3145382" xml-lang="en-US" l10n="U" oldref="42">Export the desired data from the source database in a text format. The CSV text format is recommended. This format separates data fields by using delimiters such as commas or semi-colons, and separates records by inserting line breaks.</paragraph> 56*cdf0e10cSrcweir</listitem> 57*cdf0e10cSrcweir<listitem> 58*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3153821" xml-lang="en-US" l10n="CHG" oldref="43">Choose <emph>File - </emph><link href="text/shared/01/01020000.xhp" name="Open"><emph>Open</emph></link> and click the file to import.</paragraph> 59*cdf0e10cSrcweir</listitem> 60*cdf0e10cSrcweir<listitem> 61*cdf0e10cSrcweir<paragraph role="listitem" id="par_id1977904" xml-lang="en-US" l10n="NEW">Select "Text CSV" from the <emph>File type</emph> combo box. Click <emph>Open</emph>.</paragraph> 62*cdf0e10cSrcweir</listitem> 63*cdf0e10cSrcweir<listitem> 64*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3150771" xml-lang="en-US" l10n="U" oldref="44">The <link href="text/shared/00/00000208.xhp" name="Text Import"><emph>Text Import</emph></link> dialog appears. Decide which data to include from the text document.</paragraph> 65*cdf0e10cSrcweir</listitem> 66*cdf0e10cSrcweir</list> 67*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3150986" xml-lang="en-US" l10n="U" oldref="45">Once the data is in a $[officename] Calc spreadsheet, you can edit it as needed. Save the data as a $[officename] data source:</paragraph> 68*cdf0e10cSrcweir<list type="unordered"> 69*cdf0e10cSrcweir<listitem> 70*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3149762" xml-lang="en-US" l10n="U" oldref="56">Save the current $[officename] Calc spreadsheet in dBASE format in the folder of a dBASE database. To do this, choose <emph>File - Save As</emph>, then select the <emph>File type</emph> "dBASE" and the folder of the dBASE database.</paragraph> 71*cdf0e10cSrcweir</listitem> 72*cdf0e10cSrcweir</list> 73*cdf0e10cSrcweir<paragraph role="heading" id="hd_id3150400" xml-lang="en-US" level="2" l10n="U" oldref="58">Exporting in CSV Text Format</paragraph> 74*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154140" xml-lang="en-US" l10n="U" oldref="59">You can export the current $[officename] spreadsheet in a text format which can be read by many other applications.</paragraph> 75*cdf0e10cSrcweir<list type="ordered"> 76*cdf0e10cSrcweir<listitem> 77*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3152933" xml-lang="en-US" l10n="U" oldref="60">Choose <emph>File - Save as</emph>.</paragraph> 78*cdf0e10cSrcweir</listitem> 79*cdf0e10cSrcweir<listitem> 80*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3154216" xml-lang="en-US" l10n="U" oldref="61">In <emph>File type</emph> select the filter "Text CSV". Enter a file name and click <emph>Save</emph>.</paragraph> 81*cdf0e10cSrcweir</listitem> 82*cdf0e10cSrcweir<listitem> 83*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3154908" xml-lang="en-US" l10n="CHG" oldref="62">This opens the <link href="text/shared/00/00000207.xhp" name="dBase Export"><emph>Export of text files</emph></link> dialog, in which you can select the character set, field delimiter and text delimiter. Click <emph>OK</emph>. A warning informs you that only the active sheet was saved.</paragraph> 84*cdf0e10cSrcweir</listitem> 85*cdf0e10cSrcweir</list> 86*cdf0e10cSrcweir<embed href="text/shared/00/00000004.xhp#related"/> 87*cdf0e10cSrcweir<embed href="text/shared/guide/data_im_export.xhp#data_im_export"/> 88*cdf0e10cSrcweir<switch select="appl"> 89*cdf0e10cSrcweir<case select="CALC"><embed href="text/scalc/guide/dbase_files.xhp#dbase_files"/> 90*cdf0e10cSrcweir</case> 91*cdf0e10cSrcweir</switch></body> 92*cdf0e10cSrcweir</helpdocument> 93