>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)