Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Interface with MS Word
Message
From
16/05/1998 08:52:27
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
16/05/1998 02:24:39
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00099908
Message ID:
00099919
Views:
22
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform