Solved

Creating a Crystal Report from a DataSet

Posted on 2006-06-20
2
356 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

895 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

14 Experts available now in Live!

Get 1:1 Help Now