1<?xml version="1.0" encoding="UTF-8"?>
2
3
4<!--***********************************************************************
5 *
6 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7 *
8 * Copyright 2000, 2010 Oracle and/or its affiliates.
9 *
10 * OpenOffice.org - a multi-platform office productivity suite
11 *
12 * This file is part of OpenOffice.org.
13 *
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
17 *
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
23 *
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org.  If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
28 *
29 ************************************************************************-->
30
31<helpdocument version="1.0">
32<meta>
33<topic id="textshared0212070000xml" indexer="include" status="PUBLISH">
34<title id="tit" xml-lang="en-US">Insert Database Columns</title>
35<filename>/text/shared/02/12070000.xhp</filename>
36</topic>
37<history>
38<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
39<lastedited date="2005-02-11T14:29:38">converted from old format - fpe</lastedited>
40</history>
41</meta>
42<body>
43<bookmark xml-lang="en-US" branch="hid/.uno:SbaBrwInsert" id="bm_id6269470" localize="false"/>
44<bookmark xml-lang="en-US" branch="hid/.uno:SbaBrwInsert" id="bm_id3156183" localize="false"/>
45<paragraph role="heading" id="hd_id3147000" xml-lang="en-US" level="1" l10n="U" oldref="1">Insert Database Columns</paragraph>
46<paragraph role="paragraph" id="par_id3143284" xml-lang="en-US" l10n="U" oldref="2"><ahelp hid=".uno:SbaBrwInsert"><variable id="datenintext">Inserts all fields of the marked record into the current document at the cursor position.
47</variable></ahelp> The icon is only visible if the current document is a text document or a spreadsheet.</paragraph>
48<section id="sydatenintext">
49<table id="tbl_id3149760">
50<tablerow>
51<tablecell colspan="" rowspan="">
52<paragraph role="paragraph" id="par_id3154186" xml-lang="en-US" l10n="E">
53<image id="img_id3147291" src="res/commandimagelist/sc_sbabrwinsert.png" width="0.222inch" height="0.222inch"><alt id="alt_id3147291" xml-lang="en-US">Icon</alt>
54	</image></paragraph>
55</tablecell>
56<tablecell colspan="" rowspan="">
57<paragraph role="paragraph" id="par_id3153527" xml-lang="en-US" l10n="U" oldref="3">Data to Text</paragraph>
58</tablecell>
59</tablerow>
60</table>
61
62</section>
63<paragraph role="paragraph" id="par_id3153577" xml-lang="en-US" l10n="U" oldref="4"><switchinline select="appl"><caseinline select="CALC">In the data source browser, select the record that you want to insert into the document and then click the <emph>Data to Text</emph> icon. The record is inserted in the document at the cursor position, with the contents of each individual field of the record copied to a table column. You can also select multiple records and transfer them into the document by clicking the <emph>Data to Text </emph>icon. Each individual record is then written to a new row.
64</caseinline></switchinline></paragraph>
65<paragraph role="paragraph" id="par_id3145345" xml-lang="en-US" l10n="U" oldref="5"><switchinline select="appl"><caseinline select="WRITER">In the data source browser, select the records that you want to insert into the document and then click the <emph>Data to Text</emph> icon, or drag-and-drop data from the data source browser into the document. This opens the <emph>Insert Database Columns </emph>dialog. Select whether the data should be inserted as a <link href="text/shared/02/12070100.xhp" name="table">table</link>, as <link href="text/shared/02/12070200.xhp" name="fields">fields</link> or as <link href="text/shared/02/12070300.xhp" name="text">text</link>.
66</caseinline></switchinline></paragraph>
67<paragraph role="paragraph" id="par_id3153031" xml-lang="en-US" l10n="U" oldref="6"><switchinline select="appl"><caseinline select="WRITER">The preferences you set in the<emph> Insert Database Columns </emph>dialog are saved and will be active the next time the dialog is called. This save process is independent of the database and can record the preferences for a maximum of 5 databases.
68</caseinline></switchinline></paragraph>
69<paragraph role="paragraph" id="par_id3156326" xml-lang="en-US" l10n="U" oldref="7"><switchinline select="appl"><caseinline select="WRITER">If data is inserted into the document as a table, the table properties are not saved along with the data in the document. If you select the <emph>AutoFormat</emph> function for formatting the table, $[officename] will note the name of the format template. This template will then be used automatically if you insert data as a table again, unless the preferences have been changed.
70</caseinline></switchinline></paragraph>
71</body>
72</helpdocument>
73