Hyperlink.Follow MethodÂ
Displays a cached document associated with the specified Hyperlink object, if it has already been downloaded. Otherwise, this method resolves the hyperlink, downloads the target document, and displays the document in the appropriate application.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim NewWindow As Object
Dim AddHistory As Object
Dim ExtraInfo As Object
Dim Method As Object
Dim HeaderInfo As Object
Dim hyperlink1 As Hyperlink
hyperlink1.Follow(NewWindow, AddHistory, ExtraInfo, Method, HeaderInfo)
Syntax
Sub Follow( _
<InAttribute()> Optional ByRef NewWindow As Object, _
<InAttribute()> Optional ByRef AddHistory As Object, _
<InAttribute()> Optional ByRef ExtraInfo As Object, _
<InAttribute()> Optional ByRef Method As Object, _
<InAttribute()> Optional ByRef HeaderInfo As Object _
)
void Follow(
[In, Optional] ref object NewWindow,
[In, Optional] ref object AddHistory,
[In, Optional] ref object ExtraInfo,
[In, Optional] ref object Method,
[In, Optional] ref object HeaderInfo
);
public: Void Follow(
&Object^ NewWindow,
&Object^ AddHistory,
&Object^ ExtraInfo,
&Object^ Method,
&Object^ HeaderInfo
);
public void Follow(
/*in*/System.Object NewWindow,
/*in*/System.Object AddHistory,
/*in*/System.Object ExtraInfo,
/*in*/System.Object Method,
/*in*/System.Object HeaderInfo
);
function Follow(
NewWindow : Object,
AddHistory : Object,
ExtraInfo : Object,
Method : Object,
HeaderInfo : Object
);
Parameters
- NewWindow
Optional Object. True to display the target document in a new window. The default value is False.
- AddHistory
Optional Object. This argument is reserved for future use.
- ExtraInfo
Optional Object. A string or 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
Optional Object. Specifies the way additional information for HTTP is handled. Can be any Microsoft.Office.Core.MsoExtraInfoMethod constant.
- HeaderInfo
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
Hyperlink Interface
Microsoft.Office.Interop.Word Namespace