PDA

Click to See Complete Forum and Search --> : Virtual table in Crystal Report


mahbub73
Jul 24th, 2008, 11:35 AM
Hello friends, I am in serious trouble to show data from a virtual table in crystal report. Here is my code : (I used VB 2008, SQL Server, ADO .NET)

Dim Tbl As New DataTable

Dim clSl As New DataColumn("Srl", Type.GetType("System.Int32"))
Dim clDt As New DataColumn("Dt", Type.GetType("System.DateTime"))
Dim clQt As New DataColumn("Qt", Type.GetType("System.Int32"))
Dim clRt As New DataColumn("Rt", Type.GetType("System.Single"))

Tbl.Columns.Add(clSl)
Tbl.Columns.Add(clDt)
Tbl.Columns.Add(clQt)
Tbl.Columns.Add(clRt)

Later I populate this Datatable with 50 rows.

Now How can I link these data fields to Crystal Report and show them in report?