Print options automation

D

DrewB

I have a document with many Drawing Objects in it and I don't want them to
print. I would like to find a way to have the printing of the Drawing
Objects disabled when the document is printed and then have them re-enabled
immediately after. I have successfully used a VB module to disable the
printing of the objects by using the DocumentBeforePrint event however I have
not figured out how to re-enable it after the print. I don't want to wait
until the document closes to change the property back does anyone have an
idea?
 
D

Doug Robbins - Word MVP

If you create a macro with the name of one of Word's built in commands, that
macro will run in place of that command. Therefore, if you name the macro
FilePrint and in it you insert the necessary commands to disable the
printing of drawing objects, then print out the documnet, then reinstate the
printing of drawings objects, you will have achieved what you are after.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
D

DrewB

Works perfect, I used the FilePrint and PrintDefault command names. I use
me.printout to get the doc to just print, if I want to open the print dialog
box is there a command for that?
 
D

Doug Robbins - Word MVP

Dialogs(wdDialogFilePrint).Show


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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