1*b1cdbd2cSJim Jagielski<?xml version="1.0" encoding="UTF-8"?>
2*b1cdbd2cSJim Jagielski
3*b1cdbd2cSJim Jagielski
4*b1cdbd2cSJim Jagielski
5*b1cdbd2cSJim Jagielski<!--***********************************************************
6*b1cdbd2cSJim Jagielski *
7*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
8*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
9*b1cdbd2cSJim Jagielski * distributed with this work for additional information
10*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
11*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
12*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
13*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
14*b1cdbd2cSJim Jagielski *
15*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
16*b1cdbd2cSJim Jagielski *
17*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
18*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
19*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
21*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
22*b1cdbd2cSJim Jagielski * under the License.
23*b1cdbd2cSJim Jagielski *
24*b1cdbd2cSJim Jagielski ***********************************************************-->
25*b1cdbd2cSJim Jagielski
26*b1cdbd2cSJim Jagielski
27*b1cdbd2cSJim Jagielski
28*b1cdbd2cSJim Jagielski
29*b1cdbd2cSJim Jagielski		<helpdocument version="1.0">
30*b1cdbd2cSJim Jagielski<meta>
31*b1cdbd2cSJim Jagielski<topic id="textscalcguidewebqueryxml" indexer="include" status="PUBLISH">
32*b1cdbd2cSJim Jagielski<title id="tit" xml-lang="en-US">Inserting External Data in Table (WebQuery)</title>
33*b1cdbd2cSJim Jagielski<filename>/text/scalc/guide/webquery.xhp</filename>
34*b1cdbd2cSJim Jagielski</topic>
35*b1cdbd2cSJim Jagielski</meta>
36*b1cdbd2cSJim Jagielski<body>
37*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="index" id="bm_id3154346"><bookmark_value>HTML WebQuery</bookmark_value>
38*b1cdbd2cSJim Jagielski<bookmark_value>ranges; inserting in tables</bookmark_value>
39*b1cdbd2cSJim Jagielski<bookmark_value>external data; inserting</bookmark_value>
40*b1cdbd2cSJim Jagielski<bookmark_value>tables; inserting external data</bookmark_value>
41*b1cdbd2cSJim Jagielski<bookmark_value>web pages; importing data</bookmark_value>
42*b1cdbd2cSJim Jagielski<bookmark_value>WebQuery filter</bookmark_value>
43*b1cdbd2cSJim Jagielski<bookmark_value>inserting; external data</bookmark_value>
44*b1cdbd2cSJim Jagielski<bookmark_value>data sources; external data</bookmark_value>
45*b1cdbd2cSJim Jagielski</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"/>
46*b1cdbd2cSJim Jagielski<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>
47*b1cdbd2cSJim Jagielski</variable></paragraph>
48*b1cdbd2cSJim Jagielski<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>
49*b1cdbd2cSJim Jagielski<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>
50*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id3149664" xml-lang="en-US" l10n="U" oldref="5">The following insert methods are available:</paragraph>
51*b1cdbd2cSJim Jagielski<paragraph role="heading" id="hd_id3146976" xml-lang="en-US" level="2" l10n="U" oldref="6">Inserting by Dialog</paragraph>
52*b1cdbd2cSJim Jagielski<list type="ordered">
53*b1cdbd2cSJim Jagielski<listitem>
54*b1cdbd2cSJim Jagielski<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>
55*b1cdbd2cSJim Jagielski</listitem>
56*b1cdbd2cSJim Jagielski<listitem>
57*b1cdbd2cSJim Jagielski<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>
58*b1cdbd2cSJim Jagielski</listitem>
59*b1cdbd2cSJim Jagielski<listitem>
60*b1cdbd2cSJim Jagielski<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>
61*b1cdbd2cSJim Jagielski</listitem>
62*b1cdbd2cSJim Jagielski<listitem>
63*b1cdbd2cSJim Jagielski<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>
64*b1cdbd2cSJim Jagielski</listitem>
65*b1cdbd2cSJim Jagielski<listitem>
66*b1cdbd2cSJim Jagielski<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>
67*b1cdbd2cSJim Jagielski</listitem>
68*b1cdbd2cSJim Jagielski</list>
69*b1cdbd2cSJim Jagielski<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>
70*b1cdbd2cSJim Jagielski<paragraph role="heading" id="hd_id3149021" xml-lang="en-US" level="2" l10n="U" oldref="12">Inserting by Navigator</paragraph>
71*b1cdbd2cSJim Jagielski<list type="ordered">
72*b1cdbd2cSJim Jagielski<listitem>
73*b1cdbd2cSJim Jagielski<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>
74*b1cdbd2cSJim Jagielski</listitem>
75*b1cdbd2cSJim Jagielski<listitem>
76*b1cdbd2cSJim Jagielski<paragraph role="paragraph" id="par_id3150205" xml-lang="en-US" l10n="U" oldref="16">In the target document open the Navigator.</paragraph>
77*b1cdbd2cSJim Jagielski</listitem>
78*b1cdbd2cSJim Jagielski<listitem>
79*b1cdbd2cSJim Jagielski<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>
80*b1cdbd2cSJim Jagielski</listitem>
81*b1cdbd2cSJim Jagielski<listitem>
82*b1cdbd2cSJim Jagielski<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
83*b1cdbd2cSJim Jagielski<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>
84*b1cdbd2cSJim Jagielski	</image>.</paragraph>
85*b1cdbd2cSJim Jagielski</listitem>
86*b1cdbd2cSJim Jagielski<listitem>
87*b1cdbd2cSJim Jagielski<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>
88*b1cdbd2cSJim Jagielski</listitem>
89*b1cdbd2cSJim Jagielski</list>
90*b1cdbd2cSJim Jagielski<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>
91*b1cdbd2cSJim Jagielski<list type="unordered">
92*b1cdbd2cSJim Jagielski<listitem>
93*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_id3152873" xml-lang="en-US" l10n="U" oldref="24">
94*b1cdbd2cSJim Jagielski<item type="literal">HTML_all</item> - designates the entire document</paragraph>
95*b1cdbd2cSJim Jagielski</listitem>
96*b1cdbd2cSJim Jagielski<listitem>
97*b1cdbd2cSJim Jagielski<paragraph role="listitem" id="par_id3149897" xml-lang="en-US" l10n="U" oldref="25">
98*b1cdbd2cSJim Jagielski<item type="literal">HTML_tables</item> - designates all HTML tables in the document</paragraph>
99*b1cdbd2cSJim Jagielski</listitem>
100*b1cdbd2cSJim Jagielski</list>
101*b1cdbd2cSJim Jagielski<paragraph role="heading" id="hd_id3149126" xml-lang="en-US" level="2" l10n="U" oldref="26">Editing the external data</paragraph>
102*b1cdbd2cSJim Jagielski<list type="unordered">
103*b1cdbd2cSJim Jagielski<listitem>
104*b1cdbd2cSJim Jagielski<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>
105*b1cdbd2cSJim Jagielski</listitem>
106*b1cdbd2cSJim Jagielski</list>
107*b1cdbd2cSJim Jagielski<section id="relatedtopics">
108*b1cdbd2cSJim Jagielski<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>
109*b1cdbd2cSJim Jagielski<embed href="text/scalc/guide/cellreferences_url.xhp#cellreferences_url"/>
110*b1cdbd2cSJim Jagielski</section>
111*b1cdbd2cSJim Jagielski</body>
112*b1cdbd2cSJim Jagielski</helpdocument>
113