Question : Crystal reports report based on dataSet in VS 2005. How to.

Hello,
I want to create report (crystal reports for VS 2005) based on DataSet.

I already done this:
1. Created stored procedure in MS Sql 2005
2. Created dataSet and drag'n'Drop stored procedure from serverExplorer
3. Created new crystal reports report:
    a) DatabaseFields -> Database Expert
    b) Project data -> ADO.Net DataSets -> .ReportDataSet -> proc_Name
    c) Drag'n'drop each field into the report
4. Created form with CrystalReportViewer
5. added Dataset and bindingsource
6. write code (attached below)

After this I have Error.  "The report has no tables."

Can you help me with this?

Best Regards
FooKy
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
Private Sub CrystalReportViewer1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CrystalReportViewer1.Load
        Dim crd As CrystalDecisions.CrystalReports.Engine.ReportDocument = New CrystalDecisions.CrystalReports.Engine.ReportDocument()
        crd.Load("Raporty/rptList.rpt")
 
 
        Me.Rek_sel_WypelnijPodaniePrzyjeciaTableAdapter.Fill(Me.RaportyDataSet1.rek_sel_WypelnijPodaniePrzyjecia, 170, 1)
 
        crd.SetDataSource(RaportyDataSet1.Tables(0))
 
        CrystalReportViewer1.ReportSource = crd
 
 
    End Sub

Answer : Crystal reports report based on dataSet in VS 2005. How to.

SEE http://www.emoreau.com/Entries/Articles/2006/09/Feeding-Crystal-Reports-from-your-application.aspx
Random Solutions  
 
programming4us programming4us