Hi Guys,
I am using VB.Net 2003 with Crystal Reports 11 Developer. As I am new to this somehow, I am not sure of how to generate the report. I can generate the report if I set the datasource at design time to the access database directly. But what I need is to set the datasource as a dataview.
Also, the report is to be displayed in another form where the report viewer is. I am not sure whether to create the dataview in the first form and pass it when the button is click to the report form ,which I dont know how, or create ther dataview on the form_load event of the report form.
At the moment, I have the following code in the report form_load event. I know it is missing something which I don't know what.
da.Fill(Ds1, "CBMDB")
Dim itemdv As New DataView(Ds1.CBMDB)
Dim report As New rptitemslist
Dim rd As New ReportDocument
crviewer.ReportSource = report
I wish you can help me with this
I am using VB.Net 2003 with Crystal Reports 11 Developer. As I am new to this somehow, I am not sure of how to generate the report. I can generate the report if I set the datasource at design time to the access database directly. But what I need is to set the datasource as a dataview.
Also, the report is to be displayed in another form where the report viewer is. I am not sure whether to create the dataview in the first form and pass it when the button is click to the report form ,which I dont know how, or create ther dataview on the form_load event of the report form.
At the moment, I have the following code in the report form_load event. I know it is missing something which I don't know what.
da.Fill(Ds1, "CBMDB")
Dim itemdv As New DataView(Ds1.CBMDB)
Dim report As New rptitemslist
Dim rd As New ReportDocument
crviewer.ReportSource = report
I wish you can help me with this