Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX Error

Status
Not open for further replies.

ihaveaproblem

Programmer
Jul 4, 2003
14
0
0
GB
I am getting a errormessage saying:

"ActiveX component cannot create object"

When I try to execute the following statement.

Set crApp = GetObject(, "Crystal.CRPE.Application")

This was working fine up untill recently. As far as I am aware the required DLL is registered so I'm not sure what is is.

Any one got any Ideas???


 
what about the comma on the 'createObject' statement?

cheers,
alej
 
in addition to almoes
use createObject instead of getObject

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
In case of GetObject the first argument is the path of dll file, If you donot know the path of the file then only give empty string in first argument i.e. ""

your code will become

Set crApp = GetObject("", Crystal.CRPE.Application")

Lemme know further if any problem

Regards.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top