1*cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2*cdf0e10cSrcweir<helpdocument version="1.0"> 3*cdf0e10cSrcweir 4*cdf0e10cSrcweir<!-- 5*cdf0e10cSrcweir*********************************************************************** 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 12*cdf0e10cSrcweir * 13*cdf0e10cSrcweir * This file is part of OpenOffice.org. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 16*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 17*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 18*cdf0e10cSrcweir * 19*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 20*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 21*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 23*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 24*cdf0e10cSrcweir * 25*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 26*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 27*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 28*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 29*cdf0e10cSrcweir * 30*cdf0e10cSrcweir ************************************************************************ 31*cdf0e10cSrcweir --> 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir<meta> 34*cdf0e10cSrcweir<topic id="textscalcguidecsv_filesxml" indexer="include"> 35*cdf0e10cSrcweir<title xml-lang="en-US" id="tit"> Importing and Exporting CSV Files </title> 36*cdf0e10cSrcweir<filename>/text/scalc/guide/csv_files.xhp</filename> 37*cdf0e10cSrcweir</topic> 38*cdf0e10cSrcweir</meta> 39*cdf0e10cSrcweir<body> 40*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id892361"><bookmark_value>number series import</bookmark_value> 41*cdf0e10cSrcweir<bookmark_value>data series import</bookmark_value> 42*cdf0e10cSrcweir<bookmark_value>exporting; tables as text</bookmark_value> 43*cdf0e10cSrcweir<bookmark_value>importing; tables as text</bookmark_value> 44*cdf0e10cSrcweir<bookmark_value>delimited values and files</bookmark_value> 45*cdf0e10cSrcweir<bookmark_value>comma separated files and values</bookmark_value> 46*cdf0e10cSrcweir<bookmark_value>text file import and export</bookmark_value> 47*cdf0e10cSrcweir<bookmark_value>csv files;importing and exporting</bookmark_value> 48*cdf0e10cSrcweir<bookmark_value>tables; importing/exporting as text</bookmark_value> 49*cdf0e10cSrcweir<bookmark_value>text documents; importing to spreadsheets</bookmark_value> 50*cdf0e10cSrcweir<bookmark_value>opening;text csv files</bookmark_value> 51*cdf0e10cSrcweir<bookmark_value>saving;as text csv</bookmark_value> 52*cdf0e10cSrcweir</bookmark><comment>MW deleted "importing;text data bases" and copied 4 index entries from scalc/guide/csv_formula.xhp</comment><comment>mw added "saving;" and "opening;"</comment> 53*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN10862" role="heading" level="1" l10n="NEW"><variable id="csv_files"><link href="text/scalc/guide/csv_files.xhp">Opening and Saving Text CSV Files</link> 54*cdf0e10cSrcweir</variable></paragraph> 55*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN10880" role="paragraph" l10n="NEW">Comma Separated Values (CSV) is a 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> 56*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN10886" role="paragraph" l10n="NEW">If the field or cell contains a comma, the field or cell <emph>must</emph> be enclosed by single quotes (') or double quotes (").</paragraph> 57*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN10890" role="heading" level="2" l10n="CHG">To Open a Text CSV File in Calc</paragraph> 58*cdf0e10cSrcweir<list type="ordered"> 59*cdf0e10cSrcweir<listitem> 60*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN10897" role="listitem" l10n="NEW">Choose <item type="menuitem">File - Open</item>.</paragraph> 61*cdf0e10cSrcweir</listitem> 62*cdf0e10cSrcweir<listitem> 63*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN1089F" role="listitem" l10n="NEW">Locate the CSV file that you want to open.</paragraph> 64*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN108A2" role="listitem" l10n="NEW">If the file has a *.csv extension, select the file.</paragraph> 65*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN108A5" role="listitem" l10n="NEW">If the CSV file has another extension, select the file, and then select "Text CSV" in the <item type="menuitem">File type</item> box</paragraph> 66*cdf0e10cSrcweir</listitem> 67*cdf0e10cSrcweir<listitem> 68*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN1082D" role="listitem" l10n="NEW">Click <item type="menuitem">Open</item>.</paragraph> 69*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN10834" role="listitem" l10n="NEW">The <item type="menuitem">Text Import</item> dialog opens.</paragraph> 70*cdf0e10cSrcweir</listitem> 71*cdf0e10cSrcweir<listitem> 72*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN108B1" role="listitem" l10n="NEW">Specify the options to divide the text in the file into columns.</paragraph> 73*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN108BB" role="listitem" l10n="NEW">You can preview the layout of the imported data at the bottom of the <item type="menuitem">Text Import</item> dialog. </paragraph> 74*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id8444166" role="listitem" l10n="NEW">Right-click a column in the preview to set the format or to hide the column.</paragraph> 75*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN108E2" role="tip" l10n="CHG">Check the text delimiter box that matches the character used as text delimiter in the file. In case of an unlisted delimiter, type the character into the input box.</paragraph> 76*cdf0e10cSrcweir</listitem> 77*cdf0e10cSrcweir<listitem> 78*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN108C5" role="listitem" l10n="NEW">Click <item type="menuitem">OK</item>.</paragraph> 79*cdf0e10cSrcweir</listitem> 80*cdf0e10cSrcweir</list> 81*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN108FA" role="heading" level="2" l10n="NEW">To Save a Sheet as a Text CSV File</paragraph> 82*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN106FC" role="note" 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> 83*cdf0e10cSrcweir<list type="ordered"> 84*cdf0e10cSrcweir<listitem> 85*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN10901" role="listitem" l10n="NEW">Open the Calc sheet that you want to save as a Text CSV file.</paragraph> 86*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN107AF" role="note" l10n="NEW">Only the current sheet can be exported.</paragraph> 87*cdf0e10cSrcweir</listitem> 88*cdf0e10cSrcweir<listitem> 89*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN10905" role="listitem" l10n="NEW">Choose <item type="menuitem">File - Save as</item>.</paragraph> 90*cdf0e10cSrcweir</listitem> 91*cdf0e10cSrcweir<listitem> 92*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN10915" role="listitem" l10n="NEW">In the <item type="menuitem">File name</item> box, enter a name for the file.</paragraph> 93*cdf0e10cSrcweir</listitem> 94*cdf0e10cSrcweir<listitem> 95*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN1090D" role="listitem" l10n="NEW">In the <item type="menuitem">File type</item> box, select "Text CSV".</paragraph> 96*cdf0e10cSrcweir</listitem> 97*cdf0e10cSrcweir<listitem> 98*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN107DD" role="listitem" l10n="NEW">(Optional) Set the field options for the Text CSV file.</paragraph> 99*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN1091C" role="listitem" l10n="NEW">Select <item type="menuitem">Edit filter settings</item>.</paragraph> 100*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN107ED" role="listitem" l10n="NEW">In the <item type="menuitem">Export of text files</item> dialog, select the options that you want.</paragraph> 101*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN107F4" role="listitem" l10n="NEW">Click <item type="menuitem">OK</item>.</paragraph> 102*cdf0e10cSrcweir</listitem> 103*cdf0e10cSrcweir<listitem> 104*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_idN107FC" role="listitem" l10n="NEW">Click <item type="menuitem">Save</item>.</paragraph> 105*cdf0e10cSrcweir</listitem> 106*cdf0e10cSrcweir</list> 107*cdf0e10cSrcweir<section id="relatedtopics"> 108*cdf0e10cSrcweir<embed href="text/scalc/guide/csv_formula.xhp#csv_formula"/> 109*cdf0e10cSrcweir<embed href="text/shared/guide/data_im_export.xhp#data_im_export"/> 110*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3153487" role="paragraph" l10n="U" oldref="20"><switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - <link href="text/shared/optionen/01060100.xhp" name="Spreadsheet - View">%PRODUCTNAME Calc - View</link></paragraph> 111*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3153008" role="paragraph" l10n="U" oldref="21"><link href="text/shared/00/00000207.xhp" name="Export text files">Export text files</link></paragraph> 112*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="par_id3155595" role="paragraph" l10n="U" oldref="22"><link href="text/shared/00/00000208.xhp" name="Import text files">Import text files</link></paragraph> 113*cdf0e10cSrcweir</section> 114*cdf0e10cSrcweir</body> 115*cdf0e10cSrcweir</helpdocument>