how can i disable MS-Word/printer message?
Hello Everybody,
Can you tell me how can i disable the message "Document Margins are out of the printed area, do you want to continue?"
i translated the message from hebrew to english ' so i hope this is how it is written...
i want the documents to print out without this message prompting.
because my app runs on a server and if this message pops then the printing is stoped until someone clicks ok.
Hope you understand my problem,
Thank you all in advance,
ERAN
Re: how can i disable MS-Word/printer message?
Eran ... Here is the message I get ...
Quote:
The margins of section 1 are set outside the printable area of the page. Do you want to continue?
You probably already know that setting DisplayAlerts False does not work. Hopefully, one of the smarter folks out there can come up with a good fix to your problem.
Code:
Sub Macro2()
Application.DisplayAlerts = False 'DOES NOT WORK FOR THIS POPUP PROBLEM
Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, Collate:=True, Background:=True, PrintToFile:= _
False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
Application.DisplayAlerts = True
End Sub
Re: how can i disable MS-Word/printer message?
Hello Webtest,
I was so glad to see your answer.
Now i know how it is written in english so i think i'll google for it.
i'm not writing in vba i'm using vb to print documents,
but i posted here ,because i knew someone will have some answers regarding word (as part of office).
Thanks Again,
Best Regards,
ERAN :wave: