Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Interface with MS Word
Message
De
16/05/1998 08:52:27
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
16/05/1998 02:24:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00099908
Message ID:
00099919
Vues:
23
>How could I call/open a MS Word document in VFP5?
> I would like user to just by a click of a button, then VFP will open
> the document in Word environment for editing.
> Pls advise, thanks.
Alvin,
Take a look at KB\FAQ\Win32Api section "Interfacing word using wordbasic" and in files\classes section "Mailmerging to word". Other than that here is how you would open an existing word doc :
* say existing doc path&filename is saved to cFileName
oWord = createobject("word.application") && Word97
with oWord
 .documents.open(cFileName)
 .visible = .t.
endwith

* Or if word95
oWord = createobject("word.basic")
with oWord
 .fileopen(cFileName)
 .appshow
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform