Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to kill an ActiveX object Django Cat[_2_] Excel Discussion (Misc queries) 3 November 8th 07 07:45 PM
error 336 (visual basic) ActiveX component not correctly registered Jose Luis Excel Discussion (Misc queries) 0 September 10th 07 09:34 AM
Activex component can't create object Naveen New Users to Excel 1 September 4th 07 02:57 PM
ActiveX component can't be created Singnet Newsgroup Excel Programming 0 August 6th 03 03:27 PM
activex component can't create object with SAP 6.20 Mark Bigelow Excel Programming 0 July 22nd 03 06:24 PM


All times are GMT +1. The time now is 04:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"