>oWord = createobject("word.application")
>oWord.Visible = .T. && optional
>oDoc = oWord.Document.Add()
>oDoc.Range.Text = "This is a test"
>oDoc.Printout()
>
>
>There is much more to this of course. Printout() has tons of parameters that allow you to control printing.
>
>HTH
Thanks for your REALLY quick response. I've got a couple of questions.
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.
Assume that I want to print "Mydoc.doc" how would I do that.
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??? I've spent most of my life with 2.6 and my brief forays into VFP have merely been extensions of that rather than true upgrades.
Thanks again.............Rich