Hi,
I use this class whenever I need to have InfoStore info in an app by passing whatever Query I need to it - I have it compiled into a dll for security and ease of use :
Saves lots of coding for different needs..
Hope it helps...
![[profile] [profile] [profile]](/data/assets/smilies/profile.gif)
To Paraphrase:"The Help you get is proportional to the Help you give.."
I use this class whenever I need to have InfoStore info in an app by passing whatever Query I need to it - I have it compiled into a dll for security and ease of use :
Code:
Namespace InfoStoreData
Public Class InfoObjectDataClass
Public InfoData As Object
Public Function GetIstoreInfo(ByVal QryStr As String) As Object
Dim oEnterpriseSessionMgr As Object
Dim oEnterpriseSession As Object
Dim InfoStore As Object
Dim res As Object
Dim username As String
Dim password As String
Dim cms As String
Dim authType As String
Dim Query As String
username="<validBOEUser>"
password="<pass>"
cms="<YourCMS>"
authType="secEnterprise"
oEnterpriseSessionMgr = CreateObject("CrystalEnterprise.SessionMgr")
oEnterpriseSession = oEnterpriseSessionMgr.Logon(username, password,cms,authType)
InfoStore = oEnterpriseSession.Service("","InfoStore")
Query = QryStr
res = InfoStore.Query(Query)
InfoData = res
Return InfoData
End Function
End Namespace
Saves lots of coding for different needs..
Hope it helps...
![[profile] [profile] [profile]](/data/assets/smilies/profile.gif)
To Paraphrase:"The Help you get is proportional to the Help you give.."