Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Program Hyperlink to Word Document
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00878059
Message ID:
00879085
Vues:
17
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform