This is what I use for Word documents
Thisform.oWord = createobject("word.application")
odoc= Thisform.oWord.Documents.open(< Word File Name >)
oDoc.Printout()
oDoc.Close(0)
Sorry, I don't have anything on PDF's. I'm sure others will be able to provide information on that.
>Hi
>
>I have a SQL table that contains a list of PDF and Word file names. I need to be able to print these out, and then update the SQL row to mark it as printed. VFP version in use is 8.00
>
>I've been trying to find a way of doing this by using WSH and/or automation; however can anyone point me in the right direction?
>
>TIA,
>Simon