Solved

Creating a Crystal Report from a DataSet

Posted on 2006-06-20
2
359 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 100

Accepted Solution

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

Expert Comment

by:mlmcc
ID: 16955784
Glad i could help

mlmcc
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

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…
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
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…
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 …

749 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