BackgroundPrintingStatus Property

Microsoft Word Visual Basic

BackgroundPrintingStatus Property

       

Returns the number of print jobs in the background printing queue. Read-only Long.

Example

This example returns the number of Word print jobs currently queued up for background printing.

Dim lngStatus As Long

If Options.PrintBackground = True Then
    lngStatus = Application.BackgroundPrintingStatus
End If

If the number of print jobs is greater than 0 (zero), this example displays a message in the status bar.

If Application.BackgroundPrintingStatus > 0 Then
    StatusBar = Application.BackgroundPrintingStatus _
        & " print jobs are queued up"
End If