1*cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2*cdf0e10cSrcweir
3*cdf0e10cSrcweir
4*cdf0e10cSrcweir<!--***********************************************************************
5*cdf0e10cSrcweir *
6*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7*cdf0e10cSrcweir *
8*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
9*cdf0e10cSrcweir *
10*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
11*cdf0e10cSrcweir *
12*cdf0e10cSrcweir * This file is part of OpenOffice.org.
13*cdf0e10cSrcweir *
14*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
15*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
16*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
17*cdf0e10cSrcweir *
18*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
19*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
20*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
22*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
23*cdf0e10cSrcweir *
24*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
25*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
26*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
27*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
28*cdf0e10cSrcweir *
29*cdf0e10cSrcweir ************************************************************************-->
30*cdf0e10cSrcweir
31*cdf0e10cSrcweir<helpdocument version="1.0">
32*cdf0e10cSrcweir<meta>
33*cdf0e10cSrcweir<topic id="textshared0212070000xml" indexer="include" status="PUBLISH">
34*cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Insert Database Columns</title>
35*cdf0e10cSrcweir<filename>/text/shared/02/12070000.xhp</filename>
36*cdf0e10cSrcweir</topic>
37*cdf0e10cSrcweir<history>
38*cdf0e10cSrcweir<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
39*cdf0e10cSrcweir<lastedited date="2005-02-11T14:29:38">converted from old format - fpe</lastedited>
40*cdf0e10cSrcweir</history>
41*cdf0e10cSrcweir</meta>
42*cdf0e10cSrcweir<body>
43*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/.uno:SbaBrwInsert" id="bm_id6269470" localize="false"/>
44*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/.uno:SbaBrwInsert" id="bm_id3156183" localize="false"/>
45*cdf0e10cSrcweir<paragraph role="heading" id="hd_id3147000" xml-lang="en-US" level="1" l10n="U" oldref="1">Insert Database Columns</paragraph>
46*cdf0e10cSrcweir<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*cdf0e10cSrcweir</variable></ahelp> The icon is only visible if the current document is a text document or a spreadsheet.</paragraph>
48*cdf0e10cSrcweir<section id="sydatenintext">
49*cdf0e10cSrcweir<table id="tbl_id3149760">
50*cdf0e10cSrcweir<tablerow>
51*cdf0e10cSrcweir<tablecell colspan="" rowspan="">
52*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154186" xml-lang="en-US" l10n="E">
53*cdf0e10cSrcweir<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*cdf0e10cSrcweir	</image></paragraph>
55*cdf0e10cSrcweir</tablecell>
56*cdf0e10cSrcweir<tablecell colspan="" rowspan="">
57*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3153527" xml-lang="en-US" l10n="U" oldref="3">Data to Text</paragraph>
58*cdf0e10cSrcweir</tablecell>
59*cdf0e10cSrcweir</tablerow>
60*cdf0e10cSrcweir</table>
61*cdf0e10cSrcweir
62*cdf0e10cSrcweir</section>
63*cdf0e10cSrcweir<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*cdf0e10cSrcweir</caseinline></switchinline></paragraph>
65*cdf0e10cSrcweir<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*cdf0e10cSrcweir</caseinline></switchinline></paragraph>
67*cdf0e10cSrcweir<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*cdf0e10cSrcweir</caseinline></switchinline></paragraph>
69*cdf0e10cSrcweir<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*cdf0e10cSrcweir</caseinline></switchinline></paragraph>
71*cdf0e10cSrcweir</body>
72*cdf0e10cSrcweir</helpdocument>
73