Send a suggestion!

We're building a brand new version of the site, and we'd love to hear your ideas

Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

[5093] Retrieving the Summary properties of a file

Last post 08-11-2008 7:00 PM by sledghammer64. 11 replies.
Page 1 of 1 (12 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [5093] Retrieving the Summary properties of a file

    This thread is for discussions of Retrieving the Summary properties of a file.

    • Post Points: 30
  • Advertisement

    • Red Gate Software

    Advertisement

    Want to boost your .NET application performance?

    Some developers always seem to write efficient and lightening-fast code. What is their secret? It’s ANTS Profiler. “We improved the performance of the application up to 10 times” Dan Ports, Intrigma.

    Try it for yourself now.

  • 08-23-2006 5:17 AM In reply to

    • rp666
    • Not Ranked
    • Joined on 08-23-2006
    • New Member
    • Points 15

    Re: [5093] Retrieving the Summary properties of a file

    Having trouble getting this too work.

    I've downloaded the ole file property reader linked at the bottom of the page. I registered the dll using regsvr32, but errors are being returned.

     

    Dim filename as string="c:\test\test.doc"
    Dim dso As DSOFile.OleDocumentProperties

    ' returns error "DSOFile.OleDocumentProperties not defined"

     dso = New DSOFile.OleDocumentProperties

    ' returns error "DSOFile.OleDocumentProperties not defined"
     dso.Open(filename.Trim, True, DSOFile.dsoFileOpenOptions.dsoOptionOpenReadOnlyIfNoWriteAccess)

    ' returns error "DSOFile not declared"


     Console.WriteLine(dso.SummaryProperties.Author)
    Console.WriteLine(dso.SummaryProperties.ByteCount)
    Console.WriteLine(dso.SummaryProperties.CharacterCount)
    Console.WriteLine(dso.SummaryProperties.CharacterCountWithSpaces)
    Console.WriteLine(dso.SummaryProperties.Comments)
    Console.WriteLine(dso.SummaryProperties.Company)
    Console.WriteLine(dso.SummaryProperties.DateCreated)
    Console.WriteLine(dso.SummaryProperties.DateLastSaved)
    Console.WriteLine(dso.SummaryProperties.LastSavedBy)
    Console.WriteLine(dso.SummaryProperties.LineCount)
    Console.WriteLine(dso.SummaryProperties.PageCount)
    Console.WriteLine(dso.SummaryProperties.ParagraphCount)
    Console.WriteLine(dso.SummaryProperties.RevisionNumber)
    Console.WriteLine(dso.SummaryProperties.Subject)
    Console.WriteLine(dso.SummaryProperties.Title)
    Console.WriteLine(dso.SummaryProperties.WordCount)















     

    How do I use this library after downloading it?

    • Post Points: 5
  • 08-23-2006 6:04 AM In reply to

    • rp666
    • Not Ranked
    • Joined on 08-23-2006
    • New Member
    • Points 15

    Re: [5093] Retrieving the Summary properties of a file

    My above question was solved when I used the menu item Website > Add reference > com tab > dso ole document properties reader 2.0.

     

    However, when I try to open a file using:

    dso.Open(FileName, True, DSOFile.dsoFileOpenOptions.dsoOptionOpenReadOnlyIfNoWriteAccess)

    I get this error:

    The name  is not valid. (Exception from HRESULT: 0x800300FC (STG_E_INVALIDNAME))

     

    • Post Points: 10
  • 12-05-2006 7:02 AM In reply to

    Re: [5093] Retrieving the Summary properties of a file

    I want to retrieve the document properties for a .pdf file
    This properties can be viewed by opening the file and from the file menu click on document properties
    Can anyone provide me a help for this



    • Post Points: 5
  • 12-05-2006 7:07 AM In reply to

    Re: [5093] Retrieving the Summary properties of a file

    Its very urgent for me
    Can anyone provide me the solution


    anandparmar wrote:
    I want to retrieve the document properties for a .pdf file
    This properties can be viewed by opening the file and from the file menu click on document properties
    Can anyone provide me a help for this



    • Post Points: 10
  • 05-07-2007 2:48 PM In reply to

    • forspiro
    • Not Ranked
    • Joined on 02-02-2006
    • New Member
    • Points 5

    Re: [5093] Retrieving the Summary properties of a file

    Hi Anandparmar, Did you find a solution to this issue? I am trying to accomplish the same thing. Thanks, Spiro
    • Post Points: 5
  • 08-10-2007 5:41 AM In reply to

    • PrashantS
    • Not Ranked
    • Joined on 08-10-2007
    • United Kingdom
    • New Member
    • Points 10

    Re: [5093] Retrieving the Summary properties of a file

    Try this out--

    Import

    System.Runtime.InteropServices.COMException

     

    • Post Points: 5
  • 08-10-2007 6:26 AM In reply to

    • PrashantS
    • Not Ranked
    • Joined on 08-10-2007
    • United Kingdom
    • New Member
    • Points 10

    Retrieving the Summary properties of a file

    Hi

     

    I m getting a  Error Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    when edit the properties of .tlf , .bmp  Image file using DSO File

    I m using Code as

    Imports System.runtime.InteropServices

    Dim objDocument As New DSOFile.OleDocumentPropertiesClass

    objDocument.SummaryProperties.Title = TextBox1.Text

    objDocument.SummaryProperties.Subject = TextBox2.Text

    objDocument.SummaryProperties.Comments = TextBox6.Text

     

    Please reply to this error as soon as possible

     

    Prashant

    • Post Points: 5
  • 06-11-2008 10:51 AM In reply to

    Re: [5093] Retrieving the Summary properties of a file

    this code is working ....thanks

    • Post Points: 5
  • 08-11-2008 12:59 PM In reply to

    • john20
    • Not Ranked
    • Joined on 08-11-2008
    • United Kingdom
    • New Member
    • Points 15

    Re: [5093] Retrieving the Summary properties of a file

    Hi
    • Post Points: 5
  • 08-11-2008 1:00 PM In reply to

    • john20
    • Not Ranked
    • Joined on 08-11-2008
    • United Kingdom
    • New Member
    • Points 15

    Re: [5093] Retrieving the Summary properties of a file

    Hi,

    Code is working fine very help full.

    can u also please provide the code how to retirve the Owner of a file.

    from security.

    Thanks

    john

     

     

    • Post Points: 10
  • 08-11-2008 7:00 PM In reply to

    Re: [5093] Retrieving the Summary properties of a file

     But I must tell that .. this .dll is only applicable to .doc files .. I am not sure whether it is same effective for .rtf or .txt file ?????

     

    can anyone confirm me about this ???         

    • Post Points: 5
Page 1 of 1 (12 items)