#1   Report Post  
Posted to microsoft.public.word.docmanagement
Nathan
 
Posts: n/a
Default Delay Print

This is probably simple, but here goes;

I want to delay a print job until sometime in the middle of the night. The
document I want to print is a Word doc, and the printer is a network shared
printer, not a locally connected printer.
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman
 
Posts: n/a
Default Delay Print

Nathan wrote:
This is probably simple, but here goes;

I want to delay a print job until sometime in the middle of the
night. The document I want to print is a Word doc, and the printer
is a network shared printer, not a locally connected printer.


One way is to use a pair of macros like these. The first one schedules the
running of the second one. Put both macros in Normal.dot, in a module named
Module1 (the default name for a module added by clicking Insert Module in
the macro editor). Change the time in the When parameter as needed -- you
can also use 24-hour notation, such as "23:30:00".

Sub PrintLater()
Application.OnTime _
When:="11:30:00 pm", _
Name:="Normal.Module1.PrintNow", _
Tolerance:=0
End Sub

Sub PrintNow()
ActiveDocument.PrintOut Background:=False
MsgBox ActiveDocument.Name & " printed at " & Now
End Sub

Open the document you want to print, run the PrintLater macro, and leave
Word running. When you come back in the morning you should find the document
on the printer and the message box on the screen.

Another way would be to create a batch file that contains a command line to
print the document:

start winword.exe "c:\docs\mydoc.doc" /mFilePrintDefault

Then create a scheduled task to run the batch file at the desired time. How
you do this depends on your version of Windows; in WinXP it's Start
Settings Control Panel Scheduled Tasks Add Scheduled Task.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Print without seeing the print dialogue box first Iceman_Aragorn Microsoft Word Help 2 November 4th 05 08:31 PM
CTRL P causes delay in displaying print dialog box Christine Microsoft Word Help 2 August 23rd 05 11:25 PM
Page Numbers Print { PAGE } in Footer in WORD even after ALT + F9 Brent Microsoft Word Help 3 June 2nd 05 05:35 PM
Print 3" x 5" cards, Word 2002 Jim E New Users 10 May 25th 05 04:23 AM
word print dialog box delay mark Microsoft Word Help 2 January 23rd 05 08:09 PM


All times are GMT +1. The time now is 07:20 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"