Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to modify file summary (title, subject etc...)

How to modify file summary (title, subject etc...)

Scheduled Pinned Locked Moved C#
tutorial
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Whytespot
    wrote on last edited by
    #1

    I'm looking for any insight on how to modify the summary information of a file (title, subject, author etc.). I've looked through System.IO and can't seem to find anything that will do this. I want to do this for any type of file (primarily office docs and pdfs), so dsofile doesn't quite do the trick. Thanks

    P J W 3 Replies Last reply
    0
    • W Whytespot

      I'm looking for any insight on how to modify the summary information of a file (title, subject, author etc.). I've looked through System.IO and can't seem to find anything that will do this. I want to do this for any type of file (primarily office docs and pdfs), so dsofile doesn't quite do the trick. Thanks

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      This information (for office documents) is actually stored in OLE Structured Storage (as part of the file). The only way to modify this would be to either access the file direct or to use COM Interop with the Office applications.

      Deja View - the feeling that you've seen this post before.

      W 1 Reply Last reply
      0
      • P Pete OHanlon

        This information (for office documents) is actually stored in OLE Structured Storage (as part of the file). The only way to modify this would be to either access the file direct or to use COM Interop with the Office applications.

        Deja View - the feeling that you've seen this post before.

        W Offline
        W Offline
        Whytespot
        wrote on last edited by
        #3

        I can modify all of the properties for office docs using the dsofile.dll which isn't a problem. Is there a generic way to modify the file summary for any type of document, not just office docs?

        P 1 Reply Last reply
        0
        • W Whytespot

          I can modify all of the properties for office docs using the dsofile.dll which isn't a problem. Is there a generic way to modify the file summary for any type of document, not just office docs?

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          I'm sure I just pointed out that the summary was stored in the file itself - i.e. wasn't easily accessible metadata. So, no. Different files types have their own ways of storing this information.

          Deja View - the feeling that you've seen this post before.

          1 Reply Last reply
          0
          • W Whytespot

            I'm looking for any insight on how to modify the summary information of a file (title, subject, author etc.). I've looked through System.IO and can't seem to find anything that will do this. I want to do this for any type of file (primarily office docs and pdfs), so dsofile doesn't quite do the trick. Thanks

            J Offline
            J Offline
            Justin Perez
            wrote on last edited by
            #5

            File.SetCreationTime(); That kind of stuff? Nevermind. I see you were talking about author, description, etc :)

            I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")

            1 Reply Last reply
            0
            • W Whytespot

              I'm looking for any insight on how to modify the summary information of a file (title, subject, author etc.). I've looked through System.IO and can't seem to find anything that will do this. I want to do this for any type of file (primarily office docs and pdfs), so dsofile doesn't quite do the trick. Thanks

              W Offline
              W Offline
              Whytespot
              wrote on last edited by
              #6

              Problem solved based on info from this article: http://groups.google.es/group/microsoft.public.win2000.developer/browse_thread/thread/19430c8069527483/99a5dd5c80c084b5?lnk=st&q=c%23+file+comments&rnum=1[^]

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups