I am trying to pull a report out of CE and simply view it using .NET.
I have already logged into Enterprise successfully and set the IStore(InfoStore) and ISession(EnterpriseSession) objects. CRViewer is my viewer on the web form.
I am using the following code:
Dim ReportQuery as CrystalDecisions.Enterprise.InfoObjects
Dim ReportSource as CrystalDecisions.Enterprise.InfoObject
ReportQuery = IStore.Query("my report query"
ReportSource = ReportQuery(1)
CRViewer.EnterpriseLogon = ISession
CRViewer.ReportSource = ReportSource
This seems to want to work but I get a "SQL Server logon failed" error after setting the ReportSource. I have tried to set this by using:
CRViewer.LogOnInfo(1).ConnectionInfo - and trying to set all of its properties.
When I do that I get the following error:
"Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"
I tried changing the index from 1 to 0, but I get the same error.
I would appreciate any help. There does not seem to be ANY CE .NET documentation. There is plenty for CR .NET. I would happily take suggestions or some reference to some documentation. Thanks in advance.
I have already logged into Enterprise successfully and set the IStore(InfoStore) and ISession(EnterpriseSession) objects. CRViewer is my viewer on the web form.
I am using the following code:
Dim ReportQuery as CrystalDecisions.Enterprise.InfoObjects
Dim ReportSource as CrystalDecisions.Enterprise.InfoObject
ReportQuery = IStore.Query("my report query"
ReportSource = ReportQuery(1)
CRViewer.EnterpriseLogon = ISession
CRViewer.ReportSource = ReportSource
This seems to want to work but I get a "SQL Server logon failed" error after setting the ReportSource. I have tried to set this by using:
CRViewer.LogOnInfo(1).ConnectionInfo - and trying to set all of its properties.
When I do that I get the following error:
"Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"
I tried changing the index from 1 to 0, but I get the same error.
I would appreciate any help. There does not seem to be ANY CE .NET documentation. There is plenty for CR .NET. I would happily take suggestions or some reference to some documentation. Thanks in advance.