I am trying to Open Word, Print a Document and then Close Word Using the Following Code
Private Sub Command0_Click()
Dim w As Object
Set w = CreateObject("word.application"
w.Visible = True
w.Documents.Open "c:\mydoc.doc"
w.ACTIVEDOCUMENT.PrintOut
w.ACTIVEDOCUMENT.Close
w.Quit
The Problem is when Word Quits I Get a dialogue box saying
Word is Currently Printing. Quiting Word will cancel all pending print jobs. Do you want to quit Word
As anyone any solutions ?
Private Sub Command0_Click()
Dim w As Object
Set w = CreateObject("word.application"
w.Visible = True
w.Documents.Open "c:\mydoc.doc"
w.ACTIVEDOCUMENT.PrintOut
w.ACTIVEDOCUMENT.Close
w.Quit
The Problem is when Word Quits I Get a dialogue box saying
Word is Currently Printing. Quiting Word will cancel all pending print jobs. Do you want to quit Word
As anyone any solutions ?