Sub
PrintSimple()
On
Error
GoTo
PrintSimpleErr:
If
b_Object
Is
Nothing
Then
MsgBox
"Fehler beim Drucken des Dokumentes !"
& vbCrLf & _
"Der Server ist derzeit nicht verfügbar !"
& vbCrLf & _
"Versuchen Sie es später !"
, vbCritical
Exit
Sub
End
If
ActionSave
ActiveDocument.PageSetup.FirstPageTray = 266
ActiveDocument.PageSetup.OtherPagesTray = 266
Application.PrintOut filename:=
""
, Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:=
""
, PageType:=wdPrintAllPages, _
Collate:=
True
, Background:=
True
, PrintToFile:=
False
ActiveDocument.Saved =
True
Exit
Sub
PrintSimpleErr:
MsgBox Err.Number &
" "
& Err.Description & vbCrLf &
"Fehler beim Drucken des Dokumentes !"
& vbCrLf & _
"Der Server ist derzeit nicht verfügbar !"
& vbCrLf & _
"Versuchen Sie es später !"
, vbCritical
End
Sub