L
Linda
I have written the following routine that performs a
mailmerge to word. This works fine execpt that my users
are always getting the following error message:
"Word is currently printing. Quitting Word will Cancel all
Print Jobs. Do you want to Quit Word?".
Is there any way to supress this message? - TIA.
Set objWord = CreateObject("Word.Application")
DoCmd.Hourglass True
Echo True, "Printing Memorandum...."
objWord.Documents.Open
("C:\temp\outstandingbill2.doc")
objWord.Application.Visible = False
XOriginalPrinter = objWord.Application.ActivePrinter
objWord.Application.ActivePrinter = "\\SERVER01
\PRINT01"
objWord.ActiveDocument.PrintOut
objWord.Application.ActivePrinter = XOriginalPrinter
objWord.ActiveDocument.Saved = True
objWord.Quit
Set objWord = Nothing
DoCmd.Hourglass False
mailmerge to word. This works fine execpt that my users
are always getting the following error message:
"Word is currently printing. Quitting Word will Cancel all
Print Jobs. Do you want to Quit Word?".
Is there any way to supress this message? - TIA.
Set objWord = CreateObject("Word.Application")
DoCmd.Hourglass True
Echo True, "Printing Memorandum...."
objWord.Documents.Open
("C:\temp\outstandingbill2.doc")
objWord.Application.Visible = False
XOriginalPrinter = objWord.Application.ActivePrinter
objWord.Application.ActivePrinter = "\\SERVER01
\PRINT01"
objWord.ActiveDocument.PrintOut
objWord.Application.ActivePrinter = XOriginalPrinter
objWord.ActiveDocument.Saved = True
objWord.Quit
Set objWord = Nothing
DoCmd.Hourglass False