Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Starting Word with specified document - how?
Message
 
 
À
26/08/2001 10:05:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00549240
Message ID:
00549243
Vues:
15
This message has been marked as the solution to the initial question of the thread.
I am using VPF6 SP4 and Word 2000:
lcFile = getfile("Word Documents:DOC")
if not empty(lcFile) and upper(justext(lcFile)) = "DOC"
   oWord = getobject(lcFile)
else
   return
endif
oWord.Application.Visible = .t.
>What is a simple way to start Word or activate an instance of Word from within Foxpro with a specified existing word document?
>
>The situation:
>
>From a VFP 7.0 form that has access to a table of Word document files (full path and filename) I would like to be able to start or activate WINWORD XP with the document in question and activate the word task.
>
>The idea is that the user can work in the document, then close it, then task switch back to the database that helped him open the document.
>
>The documents Fullpath info resides in a memofield in a table.
>
>I don't want to use word automation in the sense of having the document right on the form like in the solutions.app example.
>
>Thanks for your help.
>
>Teddy
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform