Solved

Problem using ADO .NET DataSet with Crystal Reports

Posted on 2004-08-31
4
869 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
  • 2
  • 2
4 Comments
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
Are you filling the dataset?

Bob
0
 
LVL 4

Author Comment

by:Glom
Comment Utility
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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now