DsoFile ActiveX component can't create object on other computers
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 |
DsoFile ActiveX component can't create object on other computers
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 Tom Ogilvy wrote: Did you register the Exe/dll using regsvr32? "Jeremy Gollehon" wrote in message ... 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 |
All times are GMT +1. The time now is 12:18 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com