How to avoid printing blank/empty "Document Properties"

L

leewilmott

I have created a Word 2007 Template and uploaded it to SharePoint.

On the front page of my Word template I have added a number of Document
Property Quick-Parts. I have one called "Title" and another called
"Subtitle".

The problem is, is that although all documents have a "Title" not all
documents need a "Subtitle"...so when I print the document instead of leaving
the "Subtitle" empty (because it doesn't have a subtitle)...it prints
"[Subtitle]".

How can I only print the "Subtitle" Document Property if it isn't blank?

Please help.

Lee
 
D

Doug Robbins - Word MVP

There is no Subtitle property.

Is the Subject property being used for the Subtitle?

If that is the case, you could use the following field construction

{ IF { DOCPROPERTY Subject } <> "" "Subtitle { DOCPROPERTY Subject }" "" }

You must use Ctrl+F9 to insert each pair of field delimiters { } and you use
Alt+F9 to toggle off their display.

--
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, originally posted via msnews.microsoft.com
 
L

leewilmott

Thank you for your reply Doug.

First I must apologise; I think I'm using the wrong terminology.

You may have to help me here...They are SharePoint meta-data that can be
inserted into Word by pressing "Quick Parts", "Document Property".

So, "Subtitle" is a field/metadata that I have created that can be found in
my document library.

I have tried using the method you have suggested but, unfortunately, it
doesn't work.

Lee


Doug Robbins - Word MVP said:
There is no Subtitle property.

Is the Subject property being used for the Subtitle?

If that is the case, you could use the following field construction

{ IF { DOCPROPERTY Subject } <> "" "Subtitle { DOCPROPERTY Subject }" "" }

You must use Ctrl+F9 to insert each pair of field delimiters { } and you use
Alt+F9 to toggle off their display.

--
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, originally posted via msnews.microsoft.com

leewilmott said:
I have created a Word 2007 Template and uploaded it to SharePoint.

On the front page of my Word template I have added a number of Document
Property Quick-Parts. I have one called "Title" and another called
"Subtitle".

The problem is, is that although all documents have a "Title" not all
documents need a "Subtitle"...so when I print the document instead of
leaving
the "Subtitle" empty (because it doesn't have a subtitle)...it prints
"[Subtitle]".

How can I only print the "Subtitle" Document Property if it isn't blank?

Please help.

Lee
 
D

Doug Robbins - Word MVP

If you insert a "Subtitle" into the document and then press Alt+F9, what do
you see.

If it is something of the form { DOCPROPERTY }

You could use the type of field construction that I suggested, replacing
Subject in that construction with whatever it is in the { DOCPROPERTY }
field that displays the subtitle.

--
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, originally posted via msnews.microsoft.com

leewilmott said:
Thank you for your reply Doug.

First I must apologise; I think I'm using the wrong terminology.

You may have to help me here...They are SharePoint meta-data that can be
inserted into Word by pressing "Quick Parts", "Document Property".

So, "Subtitle" is a field/metadata that I have created that can be found
in
my document library.

I have tried using the method you have suggested but, unfortunately, it
doesn't work.

Lee


Doug Robbins - Word MVP said:
There is no Subtitle property.

Is the Subject property being used for the Subtitle?

If that is the case, you could use the following field construction

{ IF { DOCPROPERTY Subject } <> "" "Subtitle { DOCPROPERTY Subject }"
"" }

You must use Ctrl+F9 to insert each pair of field delimiters { } and you
use
Alt+F9 to toggle off their display.

--
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, originally posted via msnews.microsoft.com

leewilmott said:
I have created a Word 2007 Template and uploaded it to SharePoint.

On the front page of my Word template I have added a number of Document
Property Quick-Parts. I have one called "Title" and another called
"Subtitle".

The problem is, is that although all documents have a "Title" not all
documents need a "Subtitle"...so when I print the document instead of
leaving
the "Subtitle" empty (because it doesn't have a subtitle)...it prints
"[Subtitle]".

How can I only print the "Subtitle" Document Property if it isn't
blank?

Please help.

Lee
 

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