Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2004

Tip: Looking for answers? Try searching our database.

AfterPrint?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ulf Nilsson - 16 Nov 2004 11:28 GMT
Hi,
I user Private Sub App_DocumentBeforePrint..., but is
there a thing called "Private Sub
App_DocumentAfterPrint"? If it does not exist, what do I
use?

/ Ulf
Doug Robbins - 16 Nov 2004 11:36 GMT
Any macro created with the same name of one of Word's built in commands will
run in place of that command.  Therefor create macros that are so named and
have commands in them to do the printing and whatever else it is that you
want to do.

You will need macros named FilePrint and FilePrintDefault.

Signature

Please respond to the Newsgroup for the benefit of others who may be
interested.   Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP

> Hi,
> I user Private Sub App_DocumentBeforePrint..., but is
[quoted text clipped - 3 lines]
>
> / Ulf
Ulf Nilsson - 16 Nov 2004 11:42 GMT
It's about my previous question Hide Fields. When I put
the color to wdColorWhite it works fine with the print
out, but I want the color to go back to black again after
print. How is this done?

/ Ulf

>-----Original Message-----
>Any macro created with the same name of one of Word's built in commands will
[quoted text clipped - 13 lines]
>
>.
Jay Freedman - 16 Nov 2004 15:23 GMT
Hi Ulf,

After the PrintOut command, use ActiveDocument.Undo. Since the printing
itself can't be undone, the Undo applies to the color change that precedes
the PrintOut.

To make this work properly, you must set the Background parameter of the
PrintOut command to False. That forces VBA to wait until the document is
completely printed to the spooler before execution continues to the Undo
statement.

Signature

Regards,
Jay Freedman
Microsoft Word MVP          FAQ: http://word.mvps.org

> It's about my previous question Hide Fields. When I put
> the color to wdColorWhite it works fine with the print
[quoted text clipped - 27 lines]
>>
>> .

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.