Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE automation
Message
De
03/02/1997 15:35:19
 
 
À
03/02/1997 12:30:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00019119
Message ID:
00019167
Vues:
33
>>I want to find a list of properties for Word to make automation from VFP. I search on Microsoft site but didn't find the list. At this moment I am able to create a new document, insert text, format this text and save document but I don't know how to make word visible. In Excel the code is OExcel.visible = 1 but didn't work in with Word.
>>
>>
>>Thanks Michel
>
>Word is a bit weird because it doesn't use VBA (it was added to Word 97). You need to use WordBasic before the new version. There should be a WordBasic help file that will give you this information....by the way, OWord.Visible = 1 won't work. You really don't have access to properties. You do it all by calling functions. Something like oWord.Visible().
>
>Craig


I found out how to do this by cheating, after many trys I finally copied the code from the solutions example that ships with foxpro 5.0. I don't know why, but it works. (Had something to do with one of the DEFINE, clauses I think). Take a look.
DO \VFP\SAMPLES\Solutions.pjx or similar.

Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform