Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP & Word Automation Commands
Message
From
24/02/2003 22:50:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
24/02/2003 22:30:28
Dick Day
Madison County, Nebraska
Nebraska, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00757384
Message ID:
00757387
Views:
26
>Can anyone tell me where to find the Word automation commands that can be used when creating an OLE control object in VFP? The MSN Office 2000 download document has great examples for VB but nothing for VFP. I don't know enough about OLE or VB to know how to translate the examples into usable VFP code.
>
>I can open Word, create a document and quit and that's about the extent of my OLE knowledge eg. newapp=createobject("word.application") .
>
>Any and all suggestions would be greatly appreciated!
>
>Dick Day

I have more experience with Excel than with Word. My article on Excel Automation (http://www.levelextreme.com/Magazine/September2002/Page45.asp) might give you some ideas which you can then adapt to MS-Word.

You will probably have to get an object reference to the active document, and start working with that.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform