Results 1 to 3 of 3

Thread: how can i disable MS-Word/printer message?

  1. #1

    Thread Starter
    Hyperactive Member eranfox's Avatar
    Join Date
    May 2001
    Posts
    492

    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...

  2. #2
    Frenzied Member
    Join Date
    May 2004
    Location
    Carlisle, PA
    Posts
    1,045

    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

  3. #3

    Thread Starter
    Hyperactive Member eranfox's Avatar
    Join Date
    May 2001
    Posts
    492

    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
  •  



Click Here to Expand Forum to Full Width