Calc:鏈接到外部數據
出自OOo 中文指南手册翻译
目錄 |
你可以將HTML文檔中的數據、或者OpenOffice.org Calc或Microsoft Excel電子錶格中指定範圍的數據,插入到Calc的電子錶格。 You can insert tables from HTML documents, and data located within named ranges from an OpenOffice.org Calc or Microsoft Excel spreadsheet, into a Calc spreadsheet. (1)
有兩種方法進行這樣的操作:使用外部數據對話框或使用導航器。如果您的文檔包含有命名的區域或命名的表格,並且您知道要鏈接的區域或表格的名稱,那麼使用外部數據對話框的方法快速且容易。但是,如果文檔有幾個表格,你只想選擇其中之一,您可能不能夠很容易地確定哪個是哪個,在這種情況下,導航方法可能會容易一些。 You can do this in two ways: using the External Data dialog or using the Navigator. If your file has named ranges or named tables, and you know the name of the range or table you want to link to, using the External Data dialog method is quick and easy. However, if the file has several tables, and you want to pick only one of them, you may not be able to easily determine which is which; in that case, the Navigator method may be easier. (2)
[編輯] 使用外部數據對話框 Using the External Data dialog (3)
- 打開要在其中插入外部數據的Calc文檔。這是目標文檔。 Open the Calc document where the external data is to be inserted. This is the target document. (4)
- 選擇外部數據左上角要插入其中的單元格。 Select the cell where the upper left-hand cell of the external data is to be inserted. (5)
- 選擇插入 > 鏈接到外部數據。 Choose Insert > Link to External Data. (6)
- 在外部數據對話框中,輸入源文檔的網址或點擊[...]按鈕來打開一個文檔選擇對話框。按回車使Calc載入可用表格的列表。 On the External Data dialog, type the URL of the source document or click the [...] button to open a file selection dialog. Press Enter to get Calc to load the list of available tables. (7)
- 在可用表格/區域列表中,選擇要插入的命名的區域或表格。您還可以指定該區域或表格間隔n秒更新一次。 In the Available tables/range list, select the named ranges or tables you want to insert. You can also specify that the ranges or tables are updated every n seconds. (8)
- 點擊確定保存並關閉這個對話框。 Click OK to save and close this dialog. (9)
| 在選擇源的URL之後,點擊回車之前,可用表格/區域列表是空的。 | |
| The Available tables/ranges list remains empty until you press Enter after selecting the URL of the source. |
[編輯] 使用導航器 Using the Navigator (14)
- 打開要在其中插入外部數據的OpenOffice.org Calc文檔(目標文檔)。 Open the OpenOffice.org Calc spreadsheet in which the external data is to be inserted (target document).(16)
- 打開要從中獲得外部數據的文檔(源文檔)。選擇網頁查詢(OpenOffice.org Calc)作為文檔類型。 Open the document from which the external data is to be taken (source document). Choose Web Page Query (OpenOffice.org Calc) as the file type.(17)
- 在目標文檔中,打開導航器。 In the target document, open the Navigator.(19)
- 在導航器的底部,選擇源文檔。 (在下面的例子中,源被命名為使用中的。)現在導航器中顯示源文檔中包含的區域或者表格的名稱(示例包含區域名稱中;其他文檔有一個表格的列表)。點擊範圍名稱前面的+號,以顯示其列表。 At the bottom of the Navigator, select the source document. (In the example below, the source is named actives.) The Navigator now shows the range names or the tables contained in the source document (the example contains range names; other documents have a list of tables). Click on the + next to Range names to display the list.(20)
- 在導航器中,選擇插入為鏈接拖動模式,如下所示。 In the Navigator, select the Insert as Link drag mode, as shown below. (21)
- 選擇所需的範圍或表格,並將其從導航器中拖動到目標文檔中,拖到希望數據區域的左上角出現於其中的單元格。 Select the required range or table and drag it from the Navigator into the target document, to the cell where you want the upper left-hand cell of the data range to be. (23)
- 在目標文檔中,檢查導航器。相對於範圍名稱前面有一個+號,它是在鏈接區域前面顯示一個+。點擊+號顯示相同的區域名稱。 In the target document, check the Navigator. Instead of a + by Range names, it shows a + by Linked areas. Click the + to see the same range name.(24)
[編輯] 如何找到所需的數據區域或表格 How to find the required data range or table (27)
上面的例子中,導入過濾器給出了樣本網頁中始於HTML_1的數據區域(表格)的名稱。它還創建了兩個額外的區域名稱(圖中未顯示): The examples above show that the import filter gave names to the data rangers (tables) in the sample web page starting from HTML_1. It also created two additional range names (not visible in the illustration): (28)
HTML_all - 指定整個文檔 HTML_all – designates the entire document (29)
HTML_tables - 指定文檔中的所有HTML表格 HTML_tables – designates all HTML tables in the document (30)
如果在HTML文檔中,數據源表格已獲得名稱(在表格標籤中使用ID屬性),或外部的電子錶格包括命名的區域,這些名字一起出現在Calc中按順序編號的命名區域列表中。 If the data tables in the source HTML document have been given names (using the ID attribute on the TABLE tag), or the external spreadsheet includes named ranges, those names appear in the list along with the ranges Calc has sequentially numbered. (31)
如果您需要的數據區域或表格未命名,如何知道選擇哪一個? If the data range or table you want is not named, how can you tell which one to select? (32)
到通過使用Calc網頁查詢過濾器打開的源文檔。選擇你想要的範圍。查看導航器:相應的區域名稱突出顯示。 Go to the source document, which you opened in Calc using the Web Page Query filter. Select the range you want. Look in the Navigator: the range name is highlighted. (33)
如果公式欄可見,區域名稱也顯示其左端的在名稱框中。 If the Formula Bar is visible, the range name is also displayed in the Name box at the left-hand end. (35)
[編輯] 進度表
| Calc:鏈接到外部數據 中文化進度 | 翻譯 | 0 | 校對 | 0 | 插圖 | / | 上次編輯 | 20100801192637 | 編者 | PingjuOOo |



