xref: /AOO41X/main/helpcontent2/source/text/scalc/guide/webquery.xhp (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
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="textscalcguidewebqueryxml" indexer="include" status="PUBLISH">
38*cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Inserting External Data in Table (WebQuery)</title>
39*cdf0e10cSrcweir<filename>/text/scalc/guide/webquery.xhp</filename>
40*cdf0e10cSrcweir</topic>
41*cdf0e10cSrcweir</meta>
42*cdf0e10cSrcweir<body>
43*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id3154346"><bookmark_value>HTML WebQuery</bookmark_value>
44*cdf0e10cSrcweir<bookmark_value>ranges; inserting in tables</bookmark_value>
45*cdf0e10cSrcweir<bookmark_value>external data; inserting</bookmark_value>
46*cdf0e10cSrcweir<bookmark_value>tables; inserting external data</bookmark_value>
47*cdf0e10cSrcweir<bookmark_value>web pages; importing data</bookmark_value>
48*cdf0e10cSrcweir<bookmark_value>WebQuery filter</bookmark_value>
49*cdf0e10cSrcweir<bookmark_value>inserting; external data</bookmark_value>
50*cdf0e10cSrcweir<bookmark_value>data sources; external data</bookmark_value>
51*cdf0e10cSrcweir</bookmark><comment>UFI: removed "external data;WebQuery" because both index entries "external data" led to this page.</comment><paragraph role="paragraph" id="par_id3154346" xml-lang="en-US" l10n="E" oldref="1" localize="false"/>
52*cdf0e10cSrcweir<paragraph role="heading" id="hd_id3125863" xml-lang="en-US" level="1" l10n="U" oldref="2"><variable id="webquery"><link href="text/scalc/guide/webquery.xhp" name="Inserting External Data in Table (WebQuery)">Inserting External Data in Table (WebQuery)</link>
53*cdf0e10cSrcweir</variable></paragraph>
54*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3155131" xml-lang="en-US" l10n="U" oldref="3">With the help of the <emph>Web Page Query ($[officename] Calc)</emph> import filter, you can insert tables from HTML documents in a Calc spreadsheet.</paragraph>
55*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3148575" xml-lang="en-US" l10n="U" oldref="4">You can use the same method to insert ranges defined by name from a Calc or Microsoft Excel spreadsheet.</paragraph>
56*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3149664" xml-lang="en-US" l10n="U" oldref="5">The following insert methods are available:</paragraph>
57*cdf0e10cSrcweir<paragraph role="heading" id="hd_id3146976" xml-lang="en-US" level="2" l10n="U" oldref="6">Inserting by Dialog</paragraph>
58*cdf0e10cSrcweir<list type="ordered">
59*cdf0e10cSrcweir<listitem>
60*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3154319" xml-lang="en-US" l10n="U" oldref="7">Set the cell cursor at the cell where the new content will be inserted.</paragraph>
61*cdf0e10cSrcweir</listitem>
62*cdf0e10cSrcweir<listitem>
63*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3145750" xml-lang="en-US" l10n="CHG" oldref="8">Choose <emph>Insert - Link to External Data</emph>. This opens the <link href="text/scalc/01/04090000.xhp">External Data</link> dialog.</paragraph>
64*cdf0e10cSrcweir</listitem>
65*cdf0e10cSrcweir<listitem>
66*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3149958" xml-lang="en-US" l10n="U" oldref="9">Enter the URL of the HTML document or the name of the spreadsheet. Press Enter when finished. Click the <emph>...</emph> button to open a file selection dialog.<comment>only after Enter the URL will be requested from the net.</comment></paragraph>
67*cdf0e10cSrcweir</listitem>
68*cdf0e10cSrcweir<listitem>
69*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3149400" xml-lang="en-US" l10n="U" oldref="10">In the large list box of the dialog, select the named ranges or tables you want to insert.</paragraph>
70*cdf0e10cSrcweir</listitem>
71*cdf0e10cSrcweir<listitem>
72*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3155064" xml-lang="en-US" l10n="U" oldref="11">You can also specify that the ranges or tables are updated every n seconds.</paragraph>
73*cdf0e10cSrcweir</listitem>
74*cdf0e10cSrcweir</list>
75*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3155443" xml-lang="en-US" l10n="U" oldref="30">The import filter can create names for cell ranges on the fly. As much formatting as possible is retained, while the filter intentionally does not load any images.</paragraph>
76*cdf0e10cSrcweir<paragraph role="heading" id="hd_id3149021" xml-lang="en-US" level="2" l10n="U" oldref="12">Inserting by Navigator</paragraph>
77*cdf0e10cSrcweir<list type="ordered">
78*cdf0e10cSrcweir<listitem>
79*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3153965" xml-lang="en-US" l10n="U" oldref="14">Open two documents: the $[officename] Calc spreadsheet in which the external data is to be inserted (target document) and the document from which the external data derives (source document).</paragraph>
80*cdf0e10cSrcweir</listitem>
81*cdf0e10cSrcweir<listitem>
82*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3150205" xml-lang="en-US" l10n="U" oldref="16">In the target document open the Navigator.</paragraph>
83*cdf0e10cSrcweir</listitem>
84*cdf0e10cSrcweir<listitem>
85*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3152990" xml-lang="en-US" l10n="U" oldref="18">In the lower combo box of the Navigator select the source document. The Navigator now shows the range names and database ranges or the tables contained in the source document.</paragraph>
86*cdf0e10cSrcweir</listitem>
87*cdf0e10cSrcweir<listitem>
88*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3148842" xml-lang="en-US" l10n="U" oldref="20">In the Navigator select the <emph>Insert as link</emph> drag mode
89*cdf0e10cSrcweir<image id="img_id3152985" src="sw/imglst/sc20238.png" width="0.222inch" height="0.222inch"><alt id="alt_id3152985" xml-lang="en-US">Icon</alt>
90*cdf0e10cSrcweir	</image>.</paragraph>
91*cdf0e10cSrcweir</listitem>
92*cdf0e10cSrcweir<listitem>
93*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3157978" xml-lang="en-US" l10n="U" oldref="22">Drag the desired external data from the Navigator into the target document.</paragraph>
94*cdf0e10cSrcweir</listitem>
95*cdf0e10cSrcweir</list>
96*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3144768" xml-lang="en-US" l10n="U" oldref="23">If you have loaded an HTML document with the <emph>Web Page Query</emph> filter as the source document, you will find the tables in the Navigator, named continuously from "HTML_table1" onwards, and also two range names that have been created:</paragraph>
97*cdf0e10cSrcweir<list type="unordered">
98*cdf0e10cSrcweir<listitem>
99*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3152873" xml-lang="en-US" l10n="U" oldref="24">
100*cdf0e10cSrcweir<item type="literal">HTML_all</item> - designates the entire document</paragraph>
101*cdf0e10cSrcweir</listitem>
102*cdf0e10cSrcweir<listitem>
103*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3149897" xml-lang="en-US" l10n="U" oldref="25">
104*cdf0e10cSrcweir<item type="literal">HTML_tables</item> - designates all HTML tables in the document</paragraph>
105*cdf0e10cSrcweir</listitem>
106*cdf0e10cSrcweir</list>
107*cdf0e10cSrcweir<paragraph role="heading" id="hd_id3149126" xml-lang="en-US" level="2" l10n="U" oldref="26">Editing the external data</paragraph>
108*cdf0e10cSrcweir<list type="unordered">
109*cdf0e10cSrcweir<listitem>
110*cdf0e10cSrcweir<paragraph role="listitem" id="par_id3159228" xml-lang="en-US" l10n="U" oldref="27">Open <emph>Edit - Links</emph>. Here you can edit the link to the external data.</paragraph>
111*cdf0e10cSrcweir</listitem>
112*cdf0e10cSrcweir</list>
113*cdf0e10cSrcweir<section id="relatedtopics">
114*cdf0e10cSrcweir<paragraph role="paragraph" id="par_id3154650" xml-lang="en-US" l10n="U" oldref="28"><link href="text/scalc/01/04090000.xhp" name="External data dialog">External data dialog</link></paragraph>
115*cdf0e10cSrcweir<embed href="text/scalc/guide/cellreferences_url.xhp#cellreferences_url"/>
116*cdf0e10cSrcweir</section>
117*cdf0e10cSrcweir</body>
118*cdf0e10cSrcweir</helpdocument>
119