Solved

Problem using ADO .NET DataSet with Crystal Reports

Posted on 2004-08-31
4
875 Views
Last Modified: 2012-05-05
Hi there,

I try to generate a simple report with Crystal Reports for .NET.
I've already done some reports from xml files or from databases, but my problem is now to use an ADO.NET DataSet as a data source.

I have my .xsd file to describe the structure and I fill the dataset this way :
-        Dim DSLicences As New Odyssee.AcroDroits.DataSetLicences
-        DSLicences.LicenceWeb.AddLicenceWebRow(11, 13, #12/13/2004#, 11, 13)

Then I set the datasource in the report :
-        Dim MyReport As New LicencesReport
-        MyReport.SetDataSource(DSLicences)

And finally give it to the viewer that is on my Form :
-        CRViewer.ReportSource = MyReport
-        CRViewer.Refresh()

I always get an error message when I put my data fields on my report (.rpt) file : "Error while loading database informations"...

Please Help !!
0
Comment
Question by:Glom
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 11941982
Are you filling the dataset?

Bob
0
 
LVL 4

Author Comment

by:Glom
ID: 11942058
Yes, the DataSet is filled and I can see its content as needed or even write it to an xml.
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 250 total points
ID: 11942219
I think this is a similar problem, and might provide a solution:

Err Msg: "Failed to load database information"
http://support.businessobjects.com/library/kbase/articles/c2012931.asp

What version of Crystal Reports are you using?

Bob
0
 
LVL 4

Author Comment

by:Glom
ID: 11942376
Well thank you,
I was almost sure it was a programming problem, but I re-installed properly some of the dll's (including Crdb_ado.dll, which I think was of a different version or something else) and it worked !!!

You won 250 points Bob, thanks again !
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question