Getting and Setting custom file props

  • Thread starter Thread starter Steve Drake
  • Start date Start date
S

Steve Drake

All,

If you right click on a word doc, you can see and set the custom props for
the document, how can this be done in C# (or any other lang)

I don't want to automate word as this will be running on a server as a
windows service.

Cheers

Steve
 
Steve,

AFAIK there's not other way than to use automation. How else would you
access Word attributes? Maybe there's some third-party tool, but I haven't
come across any.
 
I remember reading about this years ago, I think they called it intelligent
files, but....

I managed todo what I need by downloading the DLL from :

http://support.microsoft.com/defaul...port/kb/articles/Q224/3/51.asp&NoWebContent=1

its does have a bug with RTF files, eg someone save word as RTF, it appears
to work in there test but if you email the RTF file then it loses the custom
props, but my work around was to use regular expressions to read n write
customs props to RTF files.

Cheers

Steve
 
Back
Top