Function reference
Return the value of a Standard or Custom property from an Office File.

If the property does not exist or the value is empty then the default value is returned.

GetOfficeFileProperty( ‘Filename’‘ , ‘Property’ , ‘Default’ )


Argument Description
Filename The full path and filename.
Property The name of the Property to return
Default The value returned if the Property does not exist.

Please note that the file can not be opened when this function is invoked.

Example 1 – Custom Property
Filename( ‘f:\myfiles\abc.docx’ , ‘My Custom Property’ , ‘Not found’ )
Filename( ‘f:\myfiles\abc.docx’ , ‘[Property:My Custom Property]’ , ‘Not found’ )

Example 2 Standard Property
Filename( ‘f:\myfiles\abc.docx’ , ‘Title’ , ‘Empty’ )
Filename( ‘f:\myfiles\abc.docx’ , ‘[Property:Title]’ , ‘Empty’ )

Standard Properties
Title
Author
Comments
Version
Subject
Company
Manager
LastSavedBy
WordCount
ParagraphCount
LineCount
SlideCount
DateCreated
DateLastPrinted
DateLastSaved
RevisionNumber
MultimediaClipCount

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment