loywm
asked on
Printer Spooling Check in VB
how to make sure that the printer has complete spooling the word document before closing the document / quit the word application in the VB program.
My program look like this :
dim wordapp as word.application
dim worddoc as word.document
Set wordapp = CreateObject( "Word.Application")
set worddoc = wordapp.Documents.Open "c:\test.doc"
worddoc.PrintOut
worddoc.close
worddoc.quit
My program look like this :
dim wordapp as word.application
dim worddoc as word.document
Set wordapp = CreateObject( "Word.Application")
set worddoc = wordapp.Documents.Open "c:\test.doc"
worddoc.PrintOut
worddoc.close
worddoc.quit
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Or
If worddoc.Application.Backgr oundPrinti ngStatus > 0 Then
debug.print "print jobs are queued up"
End If
If worddoc.Application.Backgr
debug.print "print jobs are queued up"
End If
i.e.
worddoc.application.Option
worddoc.PrintOut
I have try this yet