Quantcast
Channel: Crystal Reports
Viewing all articles
Browse latest Browse all 1507

crystal report and two table

$
0
0

hi 

i have two table in my dataset and in my statement im request two table, the problem here is one of the table showing only the other is not

  Dim rptDoc As New ReportDocument
                        Dim ds As New accessdb

                        Dim sqlCon As SqlConnection
                        Dim dt As New DataTable

                        sqlCon = New SqlConnection(ConfigurationManager.ConnectionStrings("str").ConnectionString)

                      
                        Dim da As New SqlDataAdapter("select shipment.*,Registration.* from Registration,shipment", sqlCon)
                        da.Fill(dt)
                        ds.Tables(0).Merge(dt)

                        rptDoc.Load(Server.MapPath("myreport.rpt"))

                        rptDoc.SetDataSource(ds)
                        reportgenereted.DisplayGroupTree = False
                        reportgenereted.ReportSource = rptDoc


Viewing all articles
Browse latest Browse all 1507

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>