_Document.FollowHyperlink Method

Definition

Displays a cached document if it's already been downloaded. Otherwise, this method resolves the hyperlink, downloads the target document, and displays the document in the appropriate application.

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)

Parameters

Address
Object

Required String. The address of the target document.

SubAddress
Object

Optional Object. The location within the target document. The default value is an empty string.

NewWindow
Object

Optional Object. True to display the target location in a new window. The default value is False.

AddHistory
Object

Optional Object. True to add the link to the current day's history folder.

ExtraInfo
Object

Optional Object. A string or a byte array that specifies additional information for HTTP to use to resolve the hyperlink. For example, you can use ExtraInfo to specify the coordinates of an image map, the contents of a form, or a FAT file name. The string is either posted or appended, depending on the value of Method. Use the ExtraInfoRequired property to determine whether extra information is required.

Method
Object

Optional Object. Specifies the way additional information for HTTP is handled. MsoExtraInfoMethod.

HeaderInfo
Object

Optional Object. A string that specifies header information for the HTTP request. The default value is an empty string. You can combine several header lines into a single string. The specified string is automatically converted into ANSI characters. Note that the HeaderInfo argument may overwrite default HTTP header fields.

Remarks

If the hyperlink uses the file protocol, this method opens the document instead of downloading it.

Applies to