Document.FollowHyperlink 方法

定義

解析超連結,或是如果已下載文件就顯示快取文件。

public void FollowHyperlink (ref object Address, ref object SubAddress, ref object NewWindow, ref object AddHistory, ref object ExtraInfo, ref object Method, ref object HeaderInfo);
abstract member FollowHyperlink : obj * obj * obj * obj * obj * obj * obj -> unit
Public Sub FollowHyperlink (Optional ByRef Address As Object, Optional ByRef SubAddress As Object, Optional ByRef NewWindow As Object, Optional ByRef AddHistory As Object, Optional ByRef ExtraInfo As Object, Optional ByRef Method As Object, Optional ByRef HeaderInfo As Object)

參數

Address
Object

目標文件的位址。

SubAddress
Object

目標文件內的位置。 預設值為空字串。

NewWindow
Object

true 表示在新視窗中顯示目標位置。 預設值是 false

AddHistory
Object

true 表示在目前日期之歷程記錄資料夾中加入連結。

ExtraInfo
Object

字串或位元組陣列,指定 HTTP 的其他資訊以供解析超連結。 例如,您可以使用 ExtraInfo 來指定影像地圖的座標、表單的內容或 FAT 檔名。 根據的值 Method,字串會張貼或附加。 使用 ExtraInfoRequired 屬性判斷是否需要額外的資訊。

Method
Object

指定其他 HTTP 資訊的處理方式。 MsoExtraInfoMethod.

HeaderInfo
Object

字串,指定 HTTP 要求的標題資訊。 預設值為空字串。 在 Visual Basic 中,您可以使用下列語法將數個標頭行結合成單一字串:“string1 " & vbCr & "string2 ”。 指定的字串就會自動轉換成 ANSI 字元。 請注意,自 HeaderInfo 變數可能會覆寫默認 HTTP 標頭欄位。

備註

如果已下載,這個方法會顯示位於 參數的 Address 快取檔。 否則,此方法會解析超連結、下載目標文件,並使用適當的應用程式顯示文件。 如果超連結使用檔案通訊協議,這個方法會開啟檔,而不是下載檔。

選擇性參數

如需選擇性參數的資訊,請參閱 Office 方案中的選擇性參數

適用於