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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Accessing a Files summary metadata

Accessing a Files summary metadata

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelp
5 Posts 2 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.
  • M Offline
    M Offline
    mcostello
    wrote on last edited by
    #1

    Can anyone help me accessing the summary data of file e.g. author, comments etc using ASP.NET (VB code behind) The FSO object only gives limited attribute information such as date created etc Mark Costello Dublin, Ireland

    M 1 Reply Last reply
    0
    • M mcostello

      Can anyone help me accessing the summary data of file e.g. author, comments etc using ASP.NET (VB code behind) The FSO object only gives limited attribute information such as date created etc Mark Costello Dublin, Ireland

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      Try the FileInfo class[^].

      M 1 Reply Last reply
      0
      • M Mike Ellison

        Try the FileInfo class[^].

        M Offline
        M Offline
        mcostello
        wrote on last edited by
        #3

        The File Info Class only gives a restricted set of Attributes - name, path, readonly etc. It does not access the summary values of a file - author comments etc. Any other thoughts? Mark Costello Dublin, Ireland

        M 2 Replies Last reply
        0
        • M mcostello

          The File Info Class only gives a restricted set of Attributes - name, path, readonly etc. It does not access the summary values of a file - author comments etc. Any other thoughts? Mark Costello Dublin, Ireland

          M Offline
          M Offline
          Mike Ellison
          wrote on last edited by
          #4

          Hi Mark. I see what you mean. You might be able to get to the file comments using the FileVersionInfo.Comments[^] property, but I'm not sure about Author or other custom properties. I've been looking through the windows API reference too, to see if there's a p/invoke means of doing this and haven't found anything yet.

          1 Reply Last reply
          0
          • M mcostello

            The File Info Class only gives a restricted set of Attributes - name, path, readonly etc. It does not access the summary values of a file - author comments etc. Any other thoughts? Mark Costello Dublin, Ireland

            M Offline
            M Offline
            Mike Ellison
            wrote on last edited by
            #5

            Okay - here's another idea. This article shows how to use a COM object for retrieving summary properties from Office documents - does this work for what you're trying to do? http://www.codeguru.com/Csharp/Csharp/cs_data/tutorials/article.php/c4233/[^] (look under Getting File Properties for Office Documents)

            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