>>>>>>>>>>>>>>>>>>>>>>>
oDoc = oWord.Document.Add() resulted in a "Member DOCUMENT does not evaluate to an object" error. Am I supposed to supply some kind of parameter to it??? I tried a sring with the name of the file to print but got the same message.
>>>>>>>>>>>>>>>>>>>>>>>
oDoc = oWord.Document.Add() should'v been Documents.Add()
as Garrett corrcetly said.
>>>>>>>>>>>>>>>>>>>>>>>
>Assume that I want to print "Mydoc.doc" how would I do that.
>>>>>>>>>>>>>>>>>>>>>>>
oWord.Documents.Open("c:\files\Mydoc.doc") && add a fullpath
>>>>>>>>>>>>>>>>>>>>>>
Finally, so I don't have to keep bothering you and the other respondents, is there any documentation on the methods and properties of oWord.Application??? >>>>>>>>>>>>>>>>>>>>>>
MSDN has it.
I recommend you get "Microsoft Office Automation with Visual FoxPro" by Granor & Martin, Hentzenwerke Publishing (
www.hentzenwerke.com)