Hi all,
Below is my very simple code of using dataset as datasource for crystal report. I have created and generated a dataset at design time.
But when I run this, the crystalreportviewer doesn't have any data except for the report headings. What have I done wrong?Code:Dim oRpt As rptconsult oRpt = New rptconsult() Try DataSet11.Clear() SqlDataAdapter1.Fill(DataSet11) oRpt.SetDataSource(DataSet11) CrystalReportViewer1.ReportSource = oRpt Catch Exp As SqlException MsgBox(Exp.Message, MsgBoxStyle.Critical, "SQL Error") Catch Exp As Exception MsgBox(Exp.Message, MsgBoxStyle.Critical, "General Error") End Try
Kindly help me.
Thanks a lot.




Reply With Quote