I would like to programmatically open a Word Document in VFP and create a .pdf file with a different file path and file name. When you open the Adobe Distiller "printer" it prompts you for a file name (in the word document folder), which I would like to avoid.
What I have is:
oWord = createobject("Word.Application"
oDocument=oWord.Documents.open("c:\devtest.doc"
oword.ActivePrinter = "Acrobat Distiller"
oWord.ActiveDocument.printout
oWord.ActiveDocument.close()
oWord.Quit
Anyone have any thoughts.
Alan Arons![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)
What I have is:
oWord = createobject("Word.Application"
oDocument=oWord.Documents.open("c:\devtest.doc"
oword.ActivePrinter = "Acrobat Distiller"
oWord.ActiveDocument.printout
oWord.ActiveDocument.close()
oWord.Quit
Anyone have any thoughts.
Alan Arons
![[ponder] [ponder] [ponder]](/data/assets/smilies/ponder.gif)