Word Printing - suppressing the "Printing" pop up box.

S

Simon Verona

I'm printing several documents in one go from within vb.net. I'm creating a Word Object using Active-X and printing using the following line of code:

objWord.ActiveDocument.PrintOut(Background:=False, Range:=Word.WdPrintOutRange.wdPrintAllDocument, Copies:=1)

This works fine, but pops up an annoying box saying "Document [docname] printing on [printer name]"

Is there any way of suppressing this pop up ??

Many thanks in advance.

Simon
 
J

Jonathan West

Hi Simon,

You can set Background:=True, and then set a timer to look periodically at
the BackgoundPrintingStatus property. When it reaches zero, the file has
been fully spooled to the print manager.


--
Regards
Jonathan West - Word MVP
http://www.multilinker.com
Please reply to the newsgroup



I'm printing several documents in one go from within vb.net. I'm creating
a Word Object using Active-X and printing using the following line of code:

objWord.ActiveDocument.PrintOut(Background:=False,
Range:=Word.WdPrintOutRange.wdPrintAllDocument, Copies:=1)

This works fine, but pops up an annoying box saying "Document [docname]
printing on [printer name]"

Is there any way of suppressing this pop up ??

Many thanks in advance.

Simon
 
H

Helmut Weber

Hi Simon,
.... has nothing to do with word.
It's a matter of the printer's configuration
(in the network). There may be an option like "notify",
that sends a message to the user, when a document was
printed. Set "notify" to false.
Greetings from Bavaria, Germany
Helmut Weber
"red.sys" & chr$(64) & "t-online.de"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top