forked from amazingfate/help
122 lines
7.8 KiB
XML
Executable File
122 lines
7.8 KiB
XML
Executable File
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
***********************************************************************
|
|
*
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
*
|
|
* $RCSfile: csv_files.xhp,v $
|
|
*
|
|
* $Revision: 1.7 $
|
|
*
|
|
* last change: $Author: rt $ $Date: 2006-12-01 16:52:06 $
|
|
*
|
|
* The Contents of this file are made available subject to
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
|
*
|
|
*
|
|
* GNU Lesser General Public License Version 2.1
|
|
* =============================================
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License version 2.1, as published by the Free Software Foundation.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
* MA 02111-1307 USA
|
|
*
|
|
************************************************************************
|
|
-->
|
|
|
|
<helpdocument version="1.0">
|
|
<meta>
|
|
<topic id="textscalcguidecsv_filesxml" indexer="include" status="PUBLISH">
|
|
<title id="tit" xml-lang="en-US"> Importing and Exporting CSV Files </title>
|
|
<filename>/text/scalc/guide/csv_files.xhp</filename>
|
|
</topic>
|
|
<history>
|
|
<created date="2004-04-27T15:58:35">UFI: new guide</created>
|
|
<lastedited date="2006-10-24T12:55:39">UFI: do we need screenshots in this file? FPE: Repaired stored file name and link; dedr: reviewed</lastedited>
|
|
</history>
|
|
</meta>
|
|
<body>
|
|
<bookmark xml-lang="en-US" branch="index" id="bm_id892361"><bookmark_value>number series import</bookmark_value>
|
|
<bookmark_value>data series import</bookmark_value>
|
|
<bookmark_value>importing; text databases</bookmark_value>
|
|
<bookmark_value>delimited values and files</bookmark_value>
|
|
<bookmark_value>comma separated files and values</bookmark_value>
|
|
<bookmark_value>text file import and export</bookmark_value>
|
|
<bookmark_value>csv files;importing and exporting</bookmark_value>
|
|
</bookmark>
|
|
<paragraph role="heading" id="par_idN10862" xml-lang="en-US" level="1" l10n="NEW"><variable id="csv_files"><link href="text/scalc/guide/csv_files.xhp">Opening and Saving Text CSV Files</link>
|
|
</variable></paragraph>
|
|
<paragraph role="paragraph" id="par_idN10880" xml-lang="en-US" l10n="NEW">Comma Separated Values (CSV) is text file format that you can use to exchange data from a database or a spreadsheet between applications. Each line in a Text CSV file represents a record in the database, or a row in a spreadsheet. Each field in a database record or cell in a spreadsheet row is usually separated by a comma. However, you can use other characters to delimit a field, such as a tabulator character.</paragraph>
|
|
<paragraph role="paragraph" id="par_idN10886" xml-lang="en-US" l10n="NEW">If the content of a field or cell contains a comma, the contents of the field or cell <emph>must</emph> be enclosed by single quotes (') or double quotes (").</paragraph>
|
|
<paragraph role="note" id="par_idN106FC" xml-lang="en-US" l10n="NEW">When you export a spreadsheet to CSV format, only the data on the current sheet is saved. All other information, including formulas and formatting, is lost.</paragraph>
|
|
<paragraph role="heading" id="par_idN10890" xml-lang="en-US" level="2" l10n="CHG">To Open a Text CSV file in Calc</paragraph>
|
|
<list type="ordered">
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_idN10897" xml-lang="en-US" l10n="NEW">Choose <emph>File - Open</emph>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_idN1089F" xml-lang="en-US" l10n="NEW">Locate the CSV file that you want to open.</paragraph>
|
|
<paragraph role="paragraph" id="par_idN108A2" xml-lang="en-US" l10n="NEW">If the file has a *.csv extension, select the file.</paragraph>
|
|
<paragraph role="paragraph" id="par_idN108A5" xml-lang="en-US" l10n="NEW">If the CSV file has another extension, select the file, and then select "Text CSV" in the <emph>File type</emph> box</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_idN1082D" xml-lang="en-US" l10n="NEW">Click <emph>Open</emph>.</paragraph>
|
|
<paragraph role="paragraph" id="par_idN10834" xml-lang="en-US" l10n="NEW">The <emph>Text Import</emph> dialog opens.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_idN108B1" xml-lang="en-US" l10n="NEW">Specify the options to divide the text in the file into columns.</paragraph>
|
|
<paragraph role="paragraph" id="par_idN108BB" xml-lang="en-US" l10n="NEW">You can preview the layout of the imported data at the bottom of the <emph>Text Import</emph> dialog. </paragraph>
|
|
<paragraph role="paragraph" id="par_id8444166" xml-lang="en-US" l10n="NEW">Right-click a column in the preview to set the format or to hide the column.</paragraph>
|
|
<paragraph role="tip" id="par_idN108E2" xml-lang="en-US" l10n="NEW">If the CSV file uses a text delimiter character that is not listed in the <emph>Text delimiter</emph> box, click in the box, and type the character.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_idN108C5" xml-lang="en-US" l10n="NEW">Click <emph>OK</emph>.</paragraph>
|
|
</listitem>
|
|
</list>
|
|
<paragraph role="heading" id="par_idN108FA" xml-lang="en-US" level="2" l10n="NEW">To Save a Sheet as a Text CSV File</paragraph>
|
|
<list type="ordered">
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_idN10901" xml-lang="en-US" l10n="NEW">Open the Calc sheet that you want to save as a Text CSV file.</paragraph>
|
|
<paragraph role="note" id="par_idN107AF" xml-lang="en-US" l10n="NEW">Only the current sheet can be exported.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_idN10905" xml-lang="en-US" l10n="NEW">Choose <emph>File - Save as</emph>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_idN10915" xml-lang="en-US" l10n="NEW">In the <emph>File name</emph> box, enter a name for the file.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_idN1090D" xml-lang="en-US" l10n="NEW">In the <emph>File type</emph> box, select "Text CSV".</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_idN107DD" xml-lang="en-US" l10n="NEW">(Optional) Set the field options for the Text CSV file.</paragraph>
|
|
<paragraph role="paragraph" id="par_idN1091C" xml-lang="en-US" l10n="NEW">Select <emph>Edit filter settings</emph>.</paragraph>
|
|
<paragraph role="paragraph" id="par_idN107ED" xml-lang="en-US" l10n="NEW">In the <emph>Export of text files</emph> dialog, select the options that you want.</paragraph>
|
|
<paragraph role="paragraph" id="par_idN107F4" xml-lang="en-US" l10n="NEW">Click <emph>OK</emph>.</paragraph>
|
|
</listitem>
|
|
<listitem>
|
|
<paragraph role="paragraph" id="par_idN107FC" xml-lang="en-US" l10n="NEW">Click <emph>Save</emph>.</paragraph>
|
|
</listitem>
|
|
</list>
|
|
<section id="relatedtopics">
|
|
<embed href="text/scalc/guide/csv_formula.xhp#csv_formula"/>
|
|
<embed href="text/shared/guide/data_im_export.xhp#data_im_export"/>
|
|
<paragraph role="paragraph" id="par_id3153487" xml-lang="en-US" l10n="U" oldref="20"><link href="text/shared/optionen/01060100.xhp" name="Tools - Options - Spreadsheet - View">Tools - Options - %PRODUCTNAME Calc - View</link></paragraph>
|
|
<paragraph role="paragraph" id="par_id3153008" xml-lang="en-US" l10n="U" oldref="21"><link href="text/shared/00/00000207.xhp" name="Export text files">Export text files</link></paragraph>
|
|
<paragraph role="paragraph" id="par_id3155595" xml-lang="en-US" l10n="U" oldref="22"><link href="text/shared/00/00000208.xhp" name="Import text files">Import text files</link></paragraph>
|
|
</section>
|
|
</body>
|
|
</helpdocument>
|