Results 1 to 12 of 12
  1. #1
    Star Lounger
    Join Date
    Oct 2011
    Location
    Auckland. New Zealand
    Posts
    61
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Document Properties

    I have been using Word's Document Properties for a bit now, but I've just come across a report that uses the 'Abstract' document property. I can't see where this field is populated (i.e. not under "File"), or calculated (it's value is 0.20). It is being used as a version number in the document header, but a version number has been inserted in the Status field (and this has a different value).

    I'm stumped....

  2. #2
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,055
    Thanks
    2
    Thanked 417 Times in 346 Posts
    Perhaps the author has given the document a custom document property named 'Abstract'? See under File>Properties>Advanced Properties>Custom. Alternatively, it could be stored in a document variable; there is no user interface for document variables, which must be populated by code.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  3. #3
    Star Lounger
    Join Date
    Oct 2011
    Location
    Auckland. New Zealand
    Posts
    61
    Thanks
    8
    Thanked 0 Times in 0 Posts
    Hi Paul. Sorry, I should have confirmed it's not a custom document property. I did find one mention of it in a question to the Microsoft Community: http://answers.microsoft.com/en-us/o...7af512d?auth=1 so I know I'm not going mad. Greg Maxey describes it in an answer as a 'cover page property' (as is publish date).

  4. #4
    Star Lounger
    Join Date
    Oct 2011
    Location
    Auckland. New Zealand
    Posts
    61
    Thanks
    8
    Thanked 0 Times in 0 Posts
    And... I can't see any VBA code in the document....

  5. #5
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,055
    Thanks
    2
    Thanked 417 Times in 346 Posts
    Presumably, then, you're referring to the 'Abstract' content control (not a document property) that gets created via Insert>Cover Page.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  6. #6
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,853
    Thanks
    4
    Thanked 259 Times in 239 Posts
    Paul - It is a document property but it isn't one of the easily found ones that the Word GUI caters for. It sits beside the very same PublishDate property that the GUI does expose via Insert>Quick Parts > Field.

    The following will work in Word 2013. I can't test on other versions at present.

    One way of using/populating the Abstract property is:
    1. On the Developer Tab, click on XML Mapping Pane. The XML Mapping Task Pane will appear
    2. In the XML Mapping Task Pane, change the Custom XML part to the CoverPageProps one
    3. Right Click the Abstract and choose Insert Content Control > Plain Text


    This will put a content control in your document which is mapped to this metadata field. You can edit the contents of this Content Control to change the contents of the Abstract metadata field. If you add another mapped CC to the same field somewhere else you can edit either one to see it update the other one when you leave the CC.

    If you like, you can then delete the CC from your document but the data you typed will still be stored in the metadata field until you change it again.
    Last edited by Andrew Lockton; 2016-03-06 at 23:30.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  7. The Following User Says Thank You to Andrew Lockton For This Useful Post:

    Charles Kenyon (2016-03-07)

  8. #7
    Silver Lounger Charles Kenyon's Avatar
    Join Date
    Jan 2001
    Location
    Sun Prairie, Wisconsin, Wisconsin, USA
    Posts
    2,049
    Thanks
    124
    Thanked 119 Times in 116 Posts
    Doing this does give a mapped content control. It is not available through a document property field.
    Attached Images Attached Images
    Last edited by Charles Kenyon; 2016-03-07 at 07:38. Reason: Add screenshot
    Charles Kyle Kenyon
    Madison, Wisconsin

  9. #8
    Silver Lounger Charles Kenyon's Avatar
    Join Date
    Jan 2001
    Location
    Sun Prairie, Wisconsin, Wisconsin, USA
    Posts
    2,049
    Thanks
    124
    Thanked 119 Times in 116 Posts
    Abstract is one of the 15 built-in document property content controls, but it does not seem to actually correspond to a document property. Insert > Quick Parts > Document Property.

    00 deleteme 1.png

    00 deleteme 2.png

    It does give you a mapped content control, though, so changing it in one spot changes it in another.
    Charles Kyle Kenyon
    Madison, Wisconsin

  10. #9
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,853
    Thanks
    4
    Thanked 259 Times in 239 Posts
    Good point Charles

    Inserting a CC mapped to Abstract via either of those methods gives you a CC mapped to the same document property. The initial difference shown in your screen capture shows that the placeholder text of each CC is different. The placeholder text appears when the CC is empty (or mapped to an empty xml node).

    Both CCs should show the same text as soon as you exit the CC assuming the field has some value (since then the Placeholder text shouldn't be visible).
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  11. #10
    Silver Lounger Charles Kenyon's Avatar
    Join Date
    Jan 2001
    Location
    Sun Prairie, Wisconsin, Wisconsin, USA
    Posts
    2,049
    Thanks
    124
    Thanked 119 Times in 116 Posts
    You are right, they both map to the same xml node. The one has a tag and different placeholder text.

    00 deleteme 1.png

    00 deleteme 2.png
    Charles Kyle Kenyon
    Madison, Wisconsin

  12. #11
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,853
    Thanks
    4
    Thanked 259 Times in 239 Posts
    That 'tag' is actually the Title property of the CC. I only pedantically point this out because there is also a 'Tag' property on each CC and this may or may not match the Title property.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  13. The Following User Says Thank You to Andrew Lockton For This Useful Post:

    Charles Kenyon (2016-03-10)

  14. #12
    Silver Lounger Charles Kenyon's Avatar
    Join Date
    Jan 2001
    Location
    Sun Prairie, Wisconsin, Wisconsin, USA
    Posts
    2,049
    Thanks
    124
    Thanked 119 Times in 116 Posts
    Thank you for pointing that out Andrew. I try to be correct in my Word terminology but do not always succeed.

    Here is a different thread on document properties. Toward the end of it, Peter Jamieson posted a spreadsheet analyzing these "document properties" and what they really are. He also notes a method using Sharepoint of adding to the list.
    Charles Kyle Kenyon
    Madison, Wisconsin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •