Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problem using ADO .NET DataSet with Crystal Reports

Posted on 2004-08-31
4
Medium Priority
?
877 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 1000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
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 brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

721 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