PC Review


Reply
Thread Tools Rate Thread

How to avoid printing blank/empty "Document Properties"

 
 
leewilmott
Guest
Posts: n/a
 
      26th Feb 2010
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
 
Reply With Quote
 
 
 
 
Doug Robbins - Word MVP
Guest
Posts: n/a
 
      26th Feb 2010
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" <(E-Mail Removed)> wrote in message
news:559805F2-253D-4B73-B203-(E-Mail Removed)...
> 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


 
Reply With Quote
 
leewilmott
Guest
Posts: n/a
 
      1st Mar 2010

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" wrote:

> 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" <(E-Mail Removed)> wrote in message
> news:559805F2-253D-4B73-B203-(E-Mail Removed)...
> > 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

>

 
Reply With Quote
 
Doug Robbins - Word MVP
Guest
Posts: n/a
 
      1st Mar 2010
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" <(E-Mail Removed)> wrote in message
news:A7AE5607-DC94-47BE-AF4D-(E-Mail Removed)...
> 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" wrote:
>
>> 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" <(E-Mail Removed)> wrote in message
>> news:559805F2-253D-4B73-B203-(E-Mail Removed)...
>> > 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

>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Avoid counting Blank cells as "0" Bob Phillips Microsoft Excel Worksheet Functions 1 19th Jan 2009 12:06 PM
Re: Avoid counting Blank cells as "0" Jarek Kujawa Microsoft Excel Worksheet Functions 0 19th Jan 2009 11:25 AM
Graphing with "Empty" vs "Blank" Cells WebColin Microsoft Excel Discussion 2 23rd Nov 2008 12:36 AM
Empty field generates "0" entries? How to avoid? StargateFanFromWork Microsoft Access Getting Started 7 16th Jan 2006 04:21 PM
Datagrid datetime: empty datatime column shows "1/1/0001", how to avoid this? =?Utf-8?B?UmV6YQ==?= Microsoft ASP .NET 3 2nd Mar 2004 06:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:39 PM.