Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE Auto to Words?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00113235
Message ID:
00113805
Vues:
35
>Hi all,
>
>Few questions in my mind :
>
>1. 2 ways to connect to Words, using Word.Basic and Word.Application. The latter is using VB script right? So what are the pro and cons? How do I found the commands for both?
>
>2. I tried the command .FileOpen('xxx.doc') and if my file located in
>another directory say C:\test, the command .FileOpen('c:\test\xxx.doc') will give me error. Any alternate command?
>
>3. I have also tried .FileNew('xxx.doc') but it always give me error. Is it a valid command?
>
>Thanks


I'm using this all the time:
local oWord
oWord = getObject('', 'word.basic')
oWord.fileNew()

....
oWord.fileSaveAs("path & file name here", 9)

The '9' above saves it in a older Word format due to the fact we have both Office 97 and Office 4.2 here.

Robert
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform