|
-
Apr 6th, 2006, 01:48 PM
#1
Thread Starter
Hyperactive Member
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
Eran Fox
ASSEMBLER,C,C++,VB6,SQL...
-
Apr 7th, 2006, 07:49 AM
#2
Frenzied Member
Re: how can i disable MS-Word/printer message?
Eran ... Here is the message I get ...
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
Blessings in abundance,
All the Best,
& ENJOY!
Art . . . . Carlisle, PA . . USA
-
Apr 7th, 2006, 10:51 AM
#3
Thread Starter
Hyperactive Member
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
Eran Fox
ASSEMBLER,C,C++,VB6,SQL...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|