I'm working on a small VB-Word automation program which generates and prints
a Word Document. The only problem that I face is that Word fires a warning
dialogue stating that the borders of the document are beyond the printable
regions. Each time I need to click 'OK' within this window and the printing
is done without any problem. Since the warning dialogue pops up with each
document this kills my automation. How can I (temporary) get rid of this
annoying pop up without changing the Word document by Word VBA coding?

Re: Want to get rid of the Word warning dialogue by Jean-Guy

Jean-Guy
Fri Aug 11 10:33:01 CDT 2006

Oscar was telling us:
Oscar nous racontait que :

> I'm working on a small VB-Word automation program which generates and
> prints a Word Document. The only problem that I face is that Word
> fires a warning dialogue stating that the borders of the document are
> beyond the printable regions. Each time I need to click 'OK' within
> this window and the printing is done without any problem. Since the
> warning dialogue pops up with each document this kills my automation.
> How can I (temporary) get rid of this annoying pop up without
> changing the Word document by Word VBA coding?

Have you tried with this line of code at the beginning of your Sub:

Application.DisplayAlerts = wdAlertsNone

and with this at the end:

Application.DisplayAlerts = wdAlertsAll

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org



Re: Want to get rid of the Word warning dialogue by Oscar

Oscar
Fri Aug 11 11:00:47 CDT 2006

Hi Jean-Guy,

I've tried that and it didn't help. The warning dialog still appears and
asks me whether I want to continue. Maybe it's not a Word standard warning
dialogue

regards,
Oscar

"Jean-Guy Marcil" <NoSpam@LeaveMeAlone> schreef in bericht
news:u1fkwtVvGHA.1436@TK2MSFTNGP02.phx.gbl...
> Oscar was telling us:
> Oscar nous racontait que :
>
>> I'm working on a small VB-Word automation program which generates and
>> prints a Word Document. The only problem that I face is that Word
>> fires a warning dialogue stating that the borders of the document are
>> beyond the printable regions. Each time I need to click 'OK' within
>> this window and the printing is done without any problem. Since the
>> warning dialogue pops up with each document this kills my automation.
>> How can I (temporary) get rid of this annoying pop up without
>> changing the Word document by Word VBA coding?
>
> Have you tried with this line of code at the beginning of your Sub:
>
> Application.DisplayAlerts = wdAlertsNone
>
> and with this at the end:
>
> Application.DisplayAlerts = wdAlertsAll
>
> --
> Salut!
> _______________________________________
> Jean-Guy Marcil - Word MVP
> jmarcilREMOVE@CAPSsympatico.caTHISTOO
> Word MVP site: http://www.word.mvps.org
>



Re: Want to get rid of the Word warning dialogue by Cindy

Cindy
Fri Aug 11 12:03:02 CDT 2006

Hi Oscar,

> I'm working on a small VB-Word automation program which generates and prints
> a Word Document. The only problem that I face is that Word fires a warning
> dialogue stating that the borders of the document are beyond the printable
> regions. Each time I need to click 'OK' within this window and the printing
> is done without any problem. Since the warning dialogue pops up with each
> document this kills my automation. How can I (temporary) get rid of this
> annoying pop up without changing the Word document by Word VBA coding?
>
I don't think you can, short of fixing the actual problem causing the prompt.
Is this always the same document?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :-)


Re: Want to get rid of the Word warning dialogue by Oscar

Oscar
Fri Aug 11 12:39:18 CDT 2006

Hi Cindy,

I've had the problem with several documents.

regards,
Oscar

"Cindy M." <C.Meister-C@hispeed.ch> schreef in bericht
news:VA.0000007e.02617d8a@speedy...
> Hi Oscar,
>
>> I'm working on a small VB-Word automation program which generates and
>> prints
>> a Word Document. The only problem that I face is that Word fires a
>> warning
>> dialogue stating that the borders of the document are beyond the
>> printable
>> regions. Each time I need to click 'OK' within this window and the
>> printing
>> is done without any problem. Since the warning dialogue pops up with each
>> document this kills my automation. How can I (temporary) get rid of this
>> annoying pop up without changing the Word document by Word VBA coding?
>>
> I don't think you can, short of fixing the actual problem causing the
> prompt.
> Is this always the same document?
>
> Cindy Meister
> INTER-Solutions, Switzerland
> http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
> http://www.word.mvps.org
>
> This reply is posted in the Newsgroup; please post any follow question or
> reply
> in the newsgroup and not by e-mail :-)
>



Re: Want to get rid of the Word warning dialogue by Cindy

Cindy
Sat Aug 12 04:52:33 CDT 2006

Hi Oscar,

> I've had the problem with several documents.
>
Do they all come from the same source? Usually if you see this message there's
something wrong in the document (a picture out in the margins, for example).
The document(s) (and the source from which they're coming) need to be fixed.

Or you need to find a printer with a driver that can handle this special
situation.

> >> I'm working on a small VB-Word automation program which generates and
> >> prints
> >> a Word Document. The only problem that I face is that Word fires a
> >> warning
> >> dialogue stating that the borders of the document are beyond the
> >> printable
> >> regions. Each time I need to click 'OK' within this window and the
> >> printing
> >> is done without any problem. Since the warning dialogue pops up with each
> >> document this kills my automation. How can I (temporary) get rid of this
> >> annoying pop up without changing the Word document by Word VBA coding?
> >>
> > I don't think you can, short of fixing the actual problem causing the
> > prompt.
> > Is this always the same document?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)


Re: Want to get rid of the Word warning dialogue by Jean-Yves

Jean-Yves
Wed Aug 30 08:58:44 CDT 2006

Hi all,

Had that problem some month ago.

Setting the alerts to none does not work if backgroung printing option is
selected.
Try this :
Dim temp as boolean
temp = Application.Options.PrintBackground
Application.Options.PrintBackground = False
Application.DisplayAlerts = wdAlertsNone
ActiveDocument.PrintOut
Application.DisplayAlerts = wdAlertsAll
Application.Options.PrintBackground = temp

Regards
Jean-Yves


"Oscar" <oku@xs4all.nl> wrote in message
news:%23%230N$fVvGHA.1372@TK2MSFTNGP04.phx.gbl...
> I'm working on a small VB-Word automation program which generates and
> prints a Word Document. The only problem that I face is that Word fires a
> warning dialogue stating that the borders of the document are beyond the
> printable regions. Each time I need to click 'OK' within this window and
> the printing is done without any problem. Since the warning dialogue pops
> up with each document this kills my automation. How can I (temporary) get
> rid of this annoying pop up without changing the Word document by Word VBA
> coding?
>