Link to home
Start Free TrialLog in
Avatar of scorp8
scorp8Flag for United States of America

asked on

install ole server?

I'm getting this message when I try to add a common dialog box to a form.  

"Cannot find ole server, install it."

What is this?

I'm have references to the proper .ocx and such...

scorp8
Avatar of vb_eddie
vb_eddie

Hello scorp8,

make a note of the troublesome ocx filename/path...then press the START button on the bottom left hand side of the screen.

Select RUN then type in

REGSVR32 path/filename  then ok it.


where path/filename is the name+location of your ocx.


Good luck.

Avatar of scorp8

ASKER

Still not working.

scorp8
You should be putting in something which looks like this:-

regsvr32 c:\winnt\system32\comdlg32.ocx


Does this part at least work?

Avatar of scorp8

ASKER

Yes, it does work and successfully registers..  This one is a head scratch..  I'm just not sure what to do...

scorp8
If you open the program code and select TOOLS....REFERENCES you should get a list of files (with tick boxes) that are associated with your program. Do any of them with ticks next to them say MISSING?

If so, you will have to put those missings files onto your machine & register them.

If all looks ok, then I can only think thast the common dialog box is not causing the problem.

Does your program use objects assigned to other Applications such as WORD, EXCEL? If so, are these applications installed on your machine.


If all this does not help, then I will need to have more info. Sample of the code, where is it falling over, what is the exact error message, error number,etc.
Avatar of scorp8

ASKER

I'll have to get the error message.  In short, it states it can't see the filedialog object...

I'll get the detailed message...

scorp8
Avatar of scorp8

ASKER

Here's the error message.

     Run-Time error '438':

     Object doesn't support this property or method.

I'll add points to this question as well..  I've been sitting on the problem for awhile and I've gotten nowhere.  I've had out network people reinstall software, etc. and the problem has not been ironed out....

Thanks for the help...

scorp8
Hello old friend,


I have just created the same error that you are getting.

I believe you may be using the wrong methods/properties in your code.

Put this code in the same form as the Common Dialog control. Put the code , say in a button, so when you click the button this code runs. Replace ActiveXct10 with the name of your Common Dialog Control name:-




With Me.ActiveXCtl0

.CancelError = True
.FileName = ""
.DialogTitle = "Select Spreadsheet"
.FILTER = "Comma Separated Values (*.csv)|*.csv|Excel (*.xls)|*.xls"
.FilterIndex = 1
.Flags = &H4 + &H1000
.ShowOpen

End With



This should work........I will be surprised if it didn't.


Let me know how you get on.


Avatar of scorp8

ASKER

Once again, it did not work...

I don't understand why I'm unable to see my File Dialog object when I have registered just about every .ocx and .dll related to a File Dialog box.

When I view the form in design view my File Dialog object is blank, therefore showing me that it's not registered...

???

scorp8

ASKER CERTIFIED SOLUTION
Avatar of vb_eddie
vb_eddie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of scorp8

ASKER

Thanks for the help...

scorp8