Автор: RostY
Дата сообщения: 23.04.2007 12:43
цитата из вордячего хелпа:
Hyperlink object that represents a new hyperlink added to a range, selection, or document.
expression.Add(Anchor, Address, SubAddress, ScreenTip, TextToDisplay, Target)
expression Required. An expression that returns a Hyperlinks object.
Anchor Required Object. The text or graphic that you want turned into a hyperlink.
Address Optional Variant. The address for the specified link. The address can be an e-mail address, an Internet address, or a file name. Note that Microsoft Word doesn't check the accuracy of the address.
SubAddress Optional Variant. The name of a location within the destination file, such as a bookmark, named range, or slide number.
ScreenTip Optional Variant. The text that appears as a ScreenTip when the mouse pointer is positioned over the specified hyperlink. The default value is Address.
TextToDisplay Optional Variant. The display text of the specified hyperlink. The value of this argument replaces the text or graphic specified by Anchor.
Target Optional Variant. The name of the frame or window in which you want to load the specified hyperlink.
Добавлено:
т.е. делай следующее:
procedure TForm1.Button1Click(Sender: TObject);
var
Word: OleVariant;
begin
Word := CreateOleObject('Word.Application');
Word.Documents.Add('Normal');
Word.ActiveDocument.hyperLinks.Add(Word.Selection.Range,
'http://forum.ru-board.com',
'',
'',
'ру-борд');
Word.Visible := 1;
end;