I have a blank crystal report, and I would like to know how can I send a dataset to the report, and generate the report dynamic.
I have this on my code, but when I open the report I get an error saying the report has no table.
The dataset is getting the data from the DB, and I only have 3 column Name, Date, Time
Private Sub ReportView_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim rpt As New CrystalReport1() 'The report you created
CompanyClassObject = New CompanyClass()
DataSetCompanyDetails = CompanyClassObject.GetTimeDetailsForCompany(CopmanyID)
CrystalReportViewer1.ReportSource = rpt
Catch Excep As Exception
MessageBox.Show(Excep.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)