How do I get/set Office Xp file properties without opening Word

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ken

    #1

    How do I get/set Office Xp file properties without opening Word

    Hi,

    I've written a C# app in VS .Net 2003 that gets and sets custom/summary
    properties of Word documents by selecting a directory and get/setting
    values using BuiltInDocument Properties and CustomDocumentP roperties by
    opening Word whilst not visable updating then saving the doc.

    However, I can see these values in the properties of the file in Windows
    explorer (via the custom and summary tabs) which makes me think, can I
    update these values WITHOUT having to open (invisable) update and save the
    Word doc but just be able to get/set these properties if they're available
    thru Windows Explorer

    Thanks

    Ken


  • Steve Drake

    #2
    Re: How do I get/set Office Xp file properties without opening Word

    Look at COMPOUND FILE STORAGE, or even better look at this website :



    its a COM object, but it will work from .NET

    We (the company I work for) have a version of the written in managed C++,
    but it doesn't allow setting of properties.

    Steve


    "Ken" <funkymonkeyken @hotmail.com> wrote in message
    news:efYlBf3rDH A.3456@tk2msftn gp13.phx.gbl...[color=blue]
    > Hi,
    >
    > I've written a C# app in VS .Net 2003 that gets and sets custom/summary
    > properties of Word documents by selecting a directory and get/setting
    > values using BuiltInDocument Properties and CustomDocumentP roperties by
    > opening Word whilst not visable updating then saving the doc.
    >
    > However, I can see these values in the properties of the file in Windows
    > explorer (via the custom and summary tabs) which makes me think, can I
    > update these values WITHOUT having to open (invisable) update and save the
    > Word doc but just be able to get/set these properties if they're available
    > thru Windows Explorer
    >
    > Thanks
    >
    > Ken
    >
    >[/color]


    Comment

    Working...