_Document.FollowHyperlink Method

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.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Sub FollowHyperlink ( _
    ByRef Address As Object, _
    ByRef SubAddress As Object, _
    ByRef NewWindow As Object, _
    ByRef AddHistory As Object, _
    ByRef ExtraInfo As Object, _
    ByRef Method As Object, _
    ByRef HeaderInfo As Object _
)
'Usage
Dim instance As _Document
Dim Address As Object
Dim SubAddress As Object
Dim NewWindow As Object
Dim AddHistory As Object
Dim ExtraInfo As Object
Dim Method As Object
Dim HeaderInfo As Object

instance.FollowHyperlink(Address, SubAddress, _
    NewWindow, AddHistory, ExtraInfo, _
    Method, HeaderInfo)
void FollowHyperlink(
    ref Object Address,
    ref Object SubAddress,
    ref Object NewWindow,
    ref Object AddHistory,
    ref Object ExtraInfo,
    ref Object Method,
    ref Object HeaderInfo
)

Parameters

  • Address
    Type: System.Object%
    Required String. The address of the target document.
  • SubAddress
    Type: System.Object%
    Optional Object. The location within the target document. The default value is an empty string.
  • NewWindow
    Type: System.Object%
    Optional Object. True to display the target location in a new window. The default value is False.
  • AddHistory
    Type: System.Object%
    Optional Object. True to add the link to the current day's history folder.
  • ExtraInfo
    Type: System.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
    Type: System.Object%
    Optional Object. Specifies the way additional information for HTTP is handled. MsoExtraInfoMethod.
  • HeaderInfo
    Type: System.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.

See Also

Reference

_Document Interface

_Document Members

Microsoft.Office.Interop.Word Namespace