Jump to content

Recommended Posts

Posted

#cs
    CustomProperties:
        Add(ByVal sPropName As String, ByRef Value As Object) As CustomProperty
        Count() As Integer
        Item(ByVal Index As Object) As CustomProperty

    CustomProperty:
        Name() As String
        Remove()
        Type() As dsoFilePropertyType
        Value() As Object

#ce

; dsoFilePropertyType
Local Enum $dsoPropertyTypeUnknown, _
    $dsoPropertyTypeString, _
    $dsoPropertyTypeLong, _
    $dsoPropertyTypeDouble, _
    $dsoPropertyTypeBool, _
    $dsoPropertyTypeDate

;
Local Enum Step *2 $dsoOptionDefault = 0, _
  $dsoOptionOnlyOpenOLEFiles = 1, _
  $dsoOptionOpenReadOnlyIfNoWriteAccess, _
  $dsoOptionDontAutoCreate, _
  $dsoOptionUseMBCStringsForNewSets

$dso = ObjCreate("DSOFile.OleDocumentProperties")

; Open(ByVal sFileName As String, Optional ByVal ReadOnly As Boolean = False, Optional ByVal Options As DSOFile.dsoFileOpenOptions = dsoOptionDefault)
$dso.Open(@ScriptDir & "\filename.xml", False)

; Add(ByVal sPropName As String, ByRef Value As Object) As CustomProperty
$dsoCustomProp = $dso.CustomProperties.Add("MyProc", "MyValue")
ConsoleWrite($dsoCustomProp.Name & @TAB & $dsoCustomProp.Value & @CRLF)

; Close(Optional ByVal SaveBeforeClose As Boolean = False)
$dso.Close()

For standard properties (summary properties), it's possible to get only those that are recognized by the library. Retrieving the width summary of an image is not possible. You'll have to create a custom property for that. How does the system is able to retrieve this information then? I guess that using shell and file extension interfaces. lol I don't know what I'm talking about... ']

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...