DsoFile ActiveX component can't create object on other computers

  • Thread starter Thread starter Jeremy Gollehon
  • Start date Start date
J

Jeremy Gollehon

I've downloaded DsoFile.exe (to access file attributes via code) from
Microsoft and installed it in a folder on my server.
I wrote some code in a Excel procedure that works great on my computer,
after going to Tools > References..., and enabling 'DS: OLE Document
Properties 1.4 Object Library'.

When I open the file on another computer (All Windows/OfficeXP fully
patched/service packed) I get an ActiveX "Compenent can't create object"
(429) error when trying to initiate a DSO object with the following code:
Set DSO = New DSOleFile.PropertyReader

I check the reference to 'DS: OLE Document Properties 1.4 Object Library'
and it is checked and showing the correct path to the server. Again, this
works fine on the computer the file was created on. I'm stuck.

Any help is greatly appreciated.
This procedure needs to run on everyone's computer.

Thanks!
-Jeremy
 
AH HAH!
So that's the other thing the exe does. I should have thought of that.
Thanks Tom!

I found this code posted by Chip to silently register a dll via code:
Shell "RegSvr32 ""C:\test.dll"" /s "

My second question:
Is it ok to re-register this dll each time the code is run, or should I
check to see if it's registered and act accordingly?

Thanks again.
-Jeremy
 
Back
Top