Try
oWord.DisplayAlerts = 0
>Hi All,
>
>I'm working on a Word Automation project where I need to automatically print a variety of user-created documents. Most of the time the printing goes fine, but every once in a while I'll get the following document printing error:
>
>"The margins of section 1 are outside the printable area of the page. Do you want to continue?"
>
>Of course, this hangs my automated process in that it's waiting for a user response.
>
>Does anyone know of a way to suppress this (or other) dialogs using Word automation?
>
>Thanks very much!
>
>-M@
If it's not broken, fix it until it is.
My Blog