Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Need to find DSOleFile.dll

Posted on 2009-04-30
4
Medium Priority
?
983 Views
Last Modified: 2013-11-17
I am trying to find DSOleFile.dll.

Yes, I know of DSOFile.dll. That is not what I am looking for.

An interesting note:  The most common reference to DSOleFile.dll  in a Google search are examples of people trying to find DSOleFile.dll, being told of DSOFile.dll, and explaining that they know of DSOFile.dll, they can find it, but they simply cannot find DSOleFile.dll.

So, here I am trying to find DSOleFile.dll.   Please help.



Regards
Stafford Martin

0
Comment
Question by:StaffordMartin
  • 2
  • 2
4 Comments
 
LVL 23

Expert Comment

by:Jens Fiederer
ID: 24278865
According to this:  http://thedotnet.com/nntp/123552/showpost.aspx

there is simply no such thing:

"DSOleFile is the project name of the component, not the file name. The file name is dsofile.dll. If
you look in the Add Reference dialog (COM) tab, it's listed as DS: OLE Document Properties 1.2
Object Library (assuming you have registered the component)."
0
 

Author Comment

by:StaffordMartin
ID: 24281586
Thanks for the clarification.

However, I am getting the same error which has been commonly reported on the internet.  Even when I have have DSOFile properly referenced and USEd,  it is not seeing the classes:
  •    PropertyReader
  •   DocumentProperties
 
I am able to see the members of DSOFile, they are:
  • OleDocumentProperties
  • OleDocumentPropertiesClass
  • CustomProperties
  • CustomProperty
  • dsoFileOptions
  • dsoPropertyType
  • SummaryProperties
PropertyReader and DocumentProperties are not included. OleDocumentProperties is not the same as DocumentProperties.
.  
0
 
LVL 23

Accepted Solution

by:
Jens Fiederer earned 2000 total points
ID: 24282257
There is more than one version of DSOFile.  The older one had PropertyReader, the one NOW available has OleDocumentProperties.


According to http://www.microsoft.com/technet/scriptcenter/resources/tales/sg0305.mspx :

For example, heres a script that retrieves the name of a documents author using the older version of Dsofile:

Set objPropertyReader = CreateObject("DSOleFile.PropertyReader")
Set objDocument = objPropertyReader.GetDocumentProperties _
    ("C:\Scripts\New_users.xls")
Wscript.Echo "Author: " & objDocument.Author


Set objFile = CreateObject("DSOFile.OleDocumentProperties")
objFile.Open("C:\Scripts\New_users.xls")
Wscript.Echo "Author: " & objFile.SummaryProperties.Author

And heres the same script rewritten to work with the new version of Dsofile:

Set objFile = CreateObject("DSOFile.OleDocumentProperties")
objFile.Open("C:\Scripts\New_users.xls")
Wscript.Echo "Author: " & objFile.SummaryProperties.Author

As you can see, both scripts return the document author, but thats about the only similarity. Even the ProgIds  DSOleFile.PropertyReader and DSOFile.OleDocumentProperties  are different. Unfortunately, the minimal documentation released with Dsofile doesnt really make that clear; if you arent careful you might  like at least one of the Scripting Guys  install the new version and spend hours trying to figure out why your old scripts no longer seem to work.

0
 

Author Closing Comment

by:StaffordMartin
ID: 31576727
Thank you very much. With that clarification, I have solved my problem.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question