Print Queue - New Doc Shows Documnetn Not Template Name

J

JeffP->

If I right-click, and select |New then print it shows document+sequential
number of docs opened/printed in the current session of word.

Is there a way to pass, update a template that is opened as New so that
Word's title bar does not show Document+sequence number ?

TIA
 
G

Graham Mayor

You could use an autonew macro in the document template with the line
ActiveWindow.Caption = ""
but frankly I don't recommend it. If nothing else the indication in the
title bar is a warning that the document has not been saved.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
J

JeffP->

Graham, Thanks for your post.

I print docs from templates and I need the print spooler to see the document
template name for inserting an underlay based on a PDF; the only way to know
what underlay is to know the original template name, I may use "Catagory" or
a custom docProp. All of this will cause another challenge in managing
selfcert to enable these macros to autorun when a doc is opened from a
template as New, then printed.
 
J

JeffP->

Okay, the window Caption is updated to the orginal Template name when I open
as New, but when I print it again shows document1.

I think that this is read only, ActiveDocument.FullName, which when New is
used is the sequential incremented document number for the session, which is
what the print spooler sees...

I'm stuck, and out'a luck...

'set WindowCaption to "MyTemplate.dot"
ActiveWindow.Caption = oDP(wdPropertyCategory)
'however when printed, the paused active printer
'shows Document+number

'when New() the Window Caption shows document+number
ActiveWindow.Caption = ActiveDocument.FullName
'this matches what the print spooler sees...
 
G

Graham Mayor

Whatever you change the window caption to, the name of the document will
remain the same. The window caption doesn't enter into the process at all.
It is merely a display issue, which is why I cautioned against using it. If
you want to interrogate the document to see what the attached template is
then you can do that

eg
If ActiveDocument.AttachedTemplate.name = "MyTemplate.dot" Then
'so do this
MsgBox "My Template is attached"
Else 'it is not attached
'so do this instead
MsgBox "Some other template is attached"
End If

If you want to print to a specific printer driver and store that with the
document, see http://www.gmayor.com/Associate_Printer.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - 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