Solved

Problem using ADO .NET DataSet with Crystal Reports

Posted on 2004-08-31
4
874 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

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