Data Connectivity
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Data Connectivity
Message Icon Topic: Error in binding Post Reply Post New Topic
Author Message
snufse
Newbie
Newbie


Joined: 19 Mar 2008
Location: United States
Online Status: Offline
Posts: 36
Quote snufse Replybullet Topic: Error in binding
    Posted: 03 Mar 2010 at 5:15am

Have following. Getting error: The report has no tables. There are rows in my data set.

Private Sub DisplayReport()   

         Dim myDataSet As Data.DataSet = Session("DiaryDataSet")   

        Dim myCrystalReport As New ReportDocument   

         Try  

           Dim myPath As String = (Server.MapPath("DisplayReport.rpt"))   

            myCrystalReport.Load(myPath)   

            myCrystalReport.SetDataSource(myDataSet.Tables("DiaryDataTable"))   

            CrystalReportViewer1.ReportSource = myCrystalReport   

         Catch ex As Exception   

            Dim ErrorString As String = ex.ToString   

         End Try  

 End Sub  

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.