How to avoid printing blank/empty "Document Properties"

  • Thread starter Thread starter leewilmott
  • Start date Start date
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
 
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
 
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
 
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
 
Back
Top