Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program Hyperlink to Word Document
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00878059
Message ID:
00879085
Views:
18
Sorry Tai, for late answer. Try this:
In VFP 8.0:
TRY
   oWord = GetObject(,"Word.Application")
CATCH
   oWord = CREATEOBJECT("Word.Application")
ENDTRY

oWord.Documents.Add()
WITH oWord.ActiveDocument
     .Hyperlinks.Add(oWord.Selection.Range, "http://www.levelextreme.com/","", "", "Your Text To Display of Hyperlink")
ENDWITH
oWord.Visible = .t.


..... && Your code here

oWord.DisplayAlerts = 0
oWord.Close(0)
oWord.Quit()
oWord = NULL
RELEASE oWord
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform