Try Dim ds As New DataSet Dim query As String query = "SELECT ItemID,Item,Serial,Quantity,Category,Class,Unit FROM database.tbl_issued" Dim da As New MySqlDataAdapter(query, ConStr) da.Fill(ds, "tbl_issued") ConStr.Close() Dim cryds As New rptPrntIss cryds.SetDataSource(ds.Tables(0)) CrystalReportViewer1.ReportSource = cryds CrystalReportViewer1.Refresh() Catch ex As Exception MessageBox.Show(ex.Message) End Try
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)