Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

_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)

'Usage
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
Dim _Document1 As _Document
_Document1.FollowHyperlink(Address, SubAddress, NewWindow, AddHistory, ExtraInfo, Method, HeaderInfo)

public: Void FollowHyperlink(
	&Object^ Address, 
	&Object^ SubAddress, 
	&Object^ NewWindow, 
	&Object^ AddHistory, 
	&Object^ ExtraInfo, 
	&Object^ Method, 
	&Object^ HeaderInfo
);
public void FollowHyperlink(
	/*in*/System.Object Address, 
	/*in*/System.Object SubAddress, 
	/*in*/System.Object NewWindow, 
	/*in*/System.Object AddHistory, 
	/*in*/System.Object ExtraInfo, 
	/*in*/System.Object Method, 
	/*in*/System.Object HeaderInfo
);
function FollowHyperlink(
	 Address : Object, 
	 SubAddress : Object, 
	 NewWindow : Object, 
	 AddHistory : Object, 
	 ExtraInfo : Object, 
	 Method : Object, 
	 HeaderInfo : Object
);

Parameters

Address

Required String. The address of the target document.

SubAddress

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

NewWindow

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

AddHistory

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

ExtraInfo

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

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

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.

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


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Anzeigen: