Home |
Search |
Today's Posts |
#1
|
|||
|
|||
How do you set a document to only print after it is saved first?
I have set up templates with file name and path in footers but if it is
printed before it is saved then the footer simply says "Document 1" What properties do i need to set to make sure the file is saved before printing? Thanks |
#2
|
|||
|
|||
On Mon, 11 Apr 2005 18:12:01 -0700, "Jacob"
wrote: I have set up templates with file name and path in footers but if it is printed before it is saved then the footer simply says "Document 1" What properties do i need to set to make sure the file is saved before printing? Thanks There is no property or option to do that. You need two macros in your template to intercept the File Print command and the toolbar button, and display the save dialog if necessary: Public Sub FilePrint() If ActiveDocument.Path = "" Then Dialogs(wdDialogFileSaveAs).Show End If Dialogs(wdDialogFilePrint).Show End Sub Public Sub FilePrintDefault() If ActiveDocument.Path = "" Then Dialogs(wdDialogFileSaveAs).Show End If ActiveDocument.PrintOut Background:=False End Sub Also make sure the "Update fields" option is checked in Tools Options Print. -- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org |
#3
|
|||
|
|||
Thank you. Works great!
"Jacob" wrote: I have set up templates with file name and path in footers but if it is printed before it is saved then the footer simply says "Document 1" What properties do i need to set to make sure the file is saved before printing? Thanks |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
can't see or print page 2 of document | Microsoft Word Help | |||
Section of a Word Document Fails to Print and Drops Out of Attachm | Microsoft Word Help | |||
How can I print a watermark on specific pages in a big document? | Microsoft Word Help | |||
How do I print a document double-sided? I can't find a print opti. | Microsoft Word Help | |||
How do I print A3 document onto two A4 sheets | Page Layout |