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

CE 9.0 .NET Report Viewing

Status
Not open for further replies.

gharing

Programmer
Jan 8, 2001
13
US
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.
 
did you find solution to this problem. i am also facing same problem. let me know.
 
The above post is over a year old, you probably won't get much action there, try starting a new thread.

Here are the .NET examples for CE:


A post as thin as yours will result in questions, please at least post basic information such as your software edition and version...

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top