1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2cdf0e10cSrcweir 3ce44d6c1SAndrew Rist<!--*********************************************************** 4cdf0e10cSrcweir * 5ce44d6c1SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 6ce44d6c1SAndrew Rist * or more contributor license agreements. See the NOTICE file 7ce44d6c1SAndrew Rist * distributed with this work for additional information 8ce44d6c1SAndrew Rist * regarding copyright ownership. The ASF licenses this file 9ce44d6c1SAndrew Rist * to you under the Apache License, Version 2.0 (the 10ce44d6c1SAndrew Rist * "License"); you may not use this file except in compliance 11ce44d6c1SAndrew Rist * with the License. You may obtain a copy of the License at 12cdf0e10cSrcweir * 13ce44d6c1SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 14cdf0e10cSrcweir * 15ce44d6c1SAndrew Rist * Unless required by applicable law or agreed to in writing, 16ce44d6c1SAndrew Rist * software distributed under the License is distributed on an 17ce44d6c1SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 18ce44d6c1SAndrew Rist * KIND, either express or implied. See the License for the 19ce44d6c1SAndrew Rist * specific language governing permissions and limitations 20ce44d6c1SAndrew Rist * under the License. 21cdf0e10cSrcweir * 22ce44d6c1SAndrew Rist ***********************************************************--> 23ce44d6c1SAndrew Rist 24cdf0e10cSrcweir<helpdocument version="1.0"> 25cdf0e10cSrcweir<meta> 26cdf0e10cSrcweir<topic id="textscalcguidewebqueryxml" indexer="include" status="PUBLISH"> 27cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Inserting External Data in Table (WebQuery)</title> 28cdf0e10cSrcweir<filename>/text/scalc/guide/webquery.xhp</filename> 29cdf0e10cSrcweir</topic> 30cdf0e10cSrcweir</meta> 31cdf0e10cSrcweir<body> 3282a98929Smseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3154346"> 3382a98929Smseidel<bookmark_value>HTML WebQuery</bookmark_value> 34cdf0e10cSrcweir<bookmark_value>ranges; inserting in tables</bookmark_value> 35cdf0e10cSrcweir<bookmark_value>external data; inserting</bookmark_value> 36cdf0e10cSrcweir<bookmark_value>tables; inserting external data</bookmark_value> 37cdf0e10cSrcweir<bookmark_value>web pages; importing data</bookmark_value> 38cdf0e10cSrcweir<bookmark_value>WebQuery filter</bookmark_value> 39cdf0e10cSrcweir<bookmark_value>inserting; external data</bookmark_value> 40cdf0e10cSrcweir<bookmark_value>data sources; external data</bookmark_value> 419b5c5849Smseidel</bookmark><comment>UFI: removed "external data;WebQuery" because both index entries "external data" led to this page.</comment> 42*df13e7c3Smseidel<paragraph role="paragraph" id="par_id3154346" xml-lang="en-US" l10n="E" localize="false"/> 43*df13e7c3Smseidel<paragraph role="heading" id="hd_id3125863" xml-lang="en-US" level="1" l10n="U"><variable id="webquery"><link href="text/scalc/guide/webquery.xhp" name="Inserting External Data in Table (WebQuery)">Inserting External Data in Table (WebQuery)</link> 44cdf0e10cSrcweir</variable></paragraph> 45*df13e7c3Smseidel<paragraph role="paragraph" id="par_id3155131" xml-lang="en-US" l10n="U">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> 46*df13e7c3Smseidel<paragraph role="paragraph" id="par_id3148575" xml-lang="en-US" l10n="U">You can use the same method to insert ranges defined by name from a Calc or Microsoft Excel spreadsheet.</paragraph> 47*df13e7c3Smseidel<paragraph role="paragraph" id="par_id3149664" xml-lang="en-US" l10n="U">The following insert methods are available:</paragraph> 48*df13e7c3Smseidel<paragraph role="heading" id="hd_id3146976" xml-lang="en-US" level="2" l10n="U">Inserting by Dialog</paragraph> 49cdf0e10cSrcweir<list type="ordered"> 50cdf0e10cSrcweir<listitem> 51*df13e7c3Smseidel<paragraph role="listitem" id="par_id3154319" xml-lang="en-US" l10n="U">Set the cell cursor at the cell where the new content will be inserted.</paragraph> 52cdf0e10cSrcweir</listitem> 53cdf0e10cSrcweir<listitem> 54*df13e7c3Smseidel<paragraph role="listitem" id="par_id3145750" xml-lang="en-US" l10n="CHG">Choose <emph>Insert - Link to External Data</emph>. This opens the <link href="text/scalc/01/04090000.xhp">External Data</link> dialog.</paragraph> 55cdf0e10cSrcweir</listitem> 56cdf0e10cSrcweir<listitem> 57*df13e7c3Smseidel<paragraph role="listitem" id="par_id3149958" xml-lang="en-US" l10n="U">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> 58cdf0e10cSrcweir</listitem> 59cdf0e10cSrcweir<listitem> 60*df13e7c3Smseidel<paragraph role="listitem" id="par_id3149400" xml-lang="en-US" l10n="U">In the large list box of the dialog, select the named ranges or tables you want to insert.</paragraph> 61cdf0e10cSrcweir</listitem> 62cdf0e10cSrcweir<listitem> 63*df13e7c3Smseidel<paragraph role="listitem" id="par_id3155064" xml-lang="en-US" l10n="U">You can also specify that the ranges or tables are updated every n seconds.</paragraph> 64cdf0e10cSrcweir</listitem> 65cdf0e10cSrcweir</list> 66*df13e7c3Smseidel<paragraph role="paragraph" id="par_id3155443" xml-lang="en-US" l10n="U">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> 67*df13e7c3Smseidel<paragraph role="heading" id="hd_id3149021" xml-lang="en-US" level="2" l10n="U">Inserting by Navigator</paragraph> 68cdf0e10cSrcweir<list type="ordered"> 69cdf0e10cSrcweir<listitem> 70*df13e7c3Smseidel<paragraph role="paragraph" id="par_id3153965" xml-lang="en-US" l10n="U">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> 71cdf0e10cSrcweir</listitem> 72cdf0e10cSrcweir<listitem> 73*df13e7c3Smseidel<paragraph role="paragraph" id="par_id3150205" xml-lang="en-US" l10n="U">In the target document open the Navigator.</paragraph> 74cdf0e10cSrcweir</listitem> 75cdf0e10cSrcweir<listitem> 76*df13e7c3Smseidel<paragraph role="paragraph" id="par_id3152990" xml-lang="en-US" l10n="U">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> 77cdf0e10cSrcweir</listitem> 78cdf0e10cSrcweir<listitem> 79*df13e7c3Smseidel<paragraph role="paragraph" id="par_id3148842" xml-lang="en-US" l10n="U">In the Navigator select the <emph>Insert as link</emph> drag mode 80cdf0e10cSrcweir<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> 81cdf0e10cSrcweir</image>.</paragraph> 82cdf0e10cSrcweir</listitem> 83cdf0e10cSrcweir<listitem> 84*df13e7c3Smseidel<paragraph role="paragraph" id="par_id3157978" xml-lang="en-US" l10n="U">Drag the desired external data from the Navigator into the target document.</paragraph> 85cdf0e10cSrcweir</listitem> 86cdf0e10cSrcweir</list> 87*df13e7c3Smseidel<paragraph role="paragraph" id="par_id3144768" xml-lang="en-US" l10n="U">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> 88cdf0e10cSrcweir<list type="unordered"> 89cdf0e10cSrcweir<listitem> 90*df13e7c3Smseidel<paragraph role="listitem" id="par_id3152873" xml-lang="en-US" l10n="U"><item type="literal">HTML_all</item> - designates the entire document</paragraph> 91cdf0e10cSrcweir</listitem> 92cdf0e10cSrcweir<listitem> 93*df13e7c3Smseidel<paragraph role="listitem" id="par_id3149897" xml-lang="en-US" l10n="U"><item type="literal">HTML_tables</item> - designates all HTML tables in the document</paragraph> 94cdf0e10cSrcweir</listitem> 95cdf0e10cSrcweir</list> 96*df13e7c3Smseidel<paragraph role="heading" id="hd_id3149126" xml-lang="en-US" level="2" l10n="U">Editing the external data</paragraph> 97cdf0e10cSrcweir<list type="unordered"> 98cdf0e10cSrcweir<listitem> 99*df13e7c3Smseidel<paragraph role="listitem" id="par_id3159228" xml-lang="en-US" l10n="U">Open <emph>Edit - Links</emph>. Here you can edit the link to the external data.</paragraph> 100cdf0e10cSrcweir</listitem> 101cdf0e10cSrcweir</list> 102cdf0e10cSrcweir<section id="relatedtopics"> 103*df13e7c3Smseidel<paragraph role="paragraph" id="par_id3154650" xml-lang="en-US" l10n="U"><link href="text/scalc/01/04090000.xhp" name="External data dialog">External data dialog</link></paragraph> 104cdf0e10cSrcweir<embed href="text/scalc/guide/cellreferences_url.xhp#cellreferences_url"/> 105cdf0e10cSrcweir</section> 106cdf0e10cSrcweir</body> 107cdf0e10cSrcweir</helpdocument> 108