WD2000: Documents Will Not Print Until Macro EndsID: Q192072
|
When you use a Visual Basic for Applications macro that prints a document, the document will not start printing until the macro ends.
Background printing is turned on. The default value for the Background printing method is True.
You must set the Background printing option to False in your code. To do
this, use the following macro:
Sub PrintDoc()
ActiveDocument.PrintOut Background:=False
End Sub
The following macro will give the command to print; however, the document
will not actually print until you click OK in the message box.
Sub PrintDoc()
ActiveDocument.PrintOut Background:=True
Msgbox "Test"
End Sub
Sub PrintDoc()
ActiveDocument.PrintOut Background:=False
Msgbox "Test"
End Sub
Additional query words: kbimu
Keywords : kbdta wd2000
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: July 15, 1999