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
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