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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COM object - Member Not Found Error

Status
Not open for further replies.

Seabrook7

Programmer
Jan 12, 2005
17
US
Hi Everyone,

We're trying to call Enterprise (9) from our application and we're having problems getting the service created. We're using COM objects, so far just from:
C:\Program Files\Crystal Decisions\Enterprise 9\win32_x86\EnterpriseFramework.dll

So far we can create the Session Manager and the Session, but the line to create the InfoStore is giving an error "COM error - Member Not Found". I have a feeling there's something wrong with the dll or maybe it's just the way we're calling it. Is there some way to see what methods are in the COM object and how we can call them? We have an Active X Control Viewer, but when we try to view the methods or properties of the EnterpriseSession Class(to make sure 'Service' is the correct method to call) is gives another error: "Cannot create the COM control" How can we be sure the dll file is valid? Does crystal ever release updated ones?

These two lines work:
ceSessionMgr = sm_obj_create("CrystalEnterprise.SessionMgr")
ceSession = sm_obj_call(ceSessionMgr,"Logon",'administrator','','martini.msd.ray.com','secEnterprise')

This one fails:
Istore = sm_obj_call(ceSession, "Service", '""','"InfoStore"')

Any suggestions/comments would be greatly appreciated.

Thanks!
-Melissa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top