Solved

Creating a Crystal Report from a DataSet

Posted on 2006-06-20
2
361 Views
Last Modified: 2009-07-29
Hi
I have a web project created in ASP.NET 2.0 with VS 2005 and Crystal Reports for Visual Studio 2005.

I have created a DataSet as describred in this excelent blog by Scott Guthrie:
http://weblogs.asp.net/scottgu/archive/2006/01/15/435498.aspx

I have also created a Crystal Report based on this DataSet.
So now I'm trying to populate the DataSet and setting it as a datasource for my report but I'm doing something wrong !!!
I have tried the following:
Dim rptWear As New ReportDocument
Dim dsWear As New DP_ItemWearTableAdapters.V_WEB_DP_ItemLastInspectTableAdapter

rptWear.Load(strDP_WearPrOrderReportPath)
rptWear.SetDataSource(dsWear.GetDataByOrderNo(strSelectedOrder, strCurrentCustomer))

But the last line is underlined blue and gives me an error:
Overload resolution failed because no accessible 'SetDataSource' is most spesific for these arguments:
..and then list two of the four possible arguments that SetDataSource can take: DataTable and IEnumerable

I have tried http://support.businessobjects.com/communityCS/TechnicalPapers/rtm_reportingoffadonetdatasets.pdf  but this document is rather thin .....


Can anyone help me ??

Peter


0
Comment
Question by:Contestoas
[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 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 500 total points
ID: 16947941
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 16955784
Glad i could help

mlmcc
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

624 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