Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the best way to initalize Word97 from VFP6?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00156542
Message ID:
00157160
Views:
92
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform