Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the best way to initalize Word97 from VFP6?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00156542
Message ID:
00157160
Vues:
77
Juan,

Open the Locals window and verify that oDoc is an object. Word can be a real PITA to get going with all the right references, once you get it figured out it's pretty powerful.

>oWord = createobject( "word.application" )
>oWord.Visible = .t.
>oDoc = oWord.Documents.Add()
>oDoc.PageSetup.LineNumbering.Active = .f.
>oWord.Selection.InsertAfter( "Test" )
>
>I get an error specifying that the "PageSetup Does not evaluate to an object".
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform