I have a VB form with a CRViewer on it.
I also have another VB form with a button that says print detail..
I want to print the detail of the recordset returned in the form. I am using the following code:
Dim Report As CrystalReport2
Set Report = New CrystalReport2
Report.Database.SetDataSource rs
frmDetailRpt.CRViewer1.ReportSource = Report
frmDetailRpt.CRViewer1.ViewReport
frmDetailRpt.CRViewer1.Zoom 100
Now it works, but it pulls all the data from the entire table. how can I just set it to display the current recordset? I do have the actual report linked to my sql table..
Thanks in advance
I also have another VB form with a button that says print detail..
I want to print the detail of the recordset returned in the form. I am using the following code:
Dim Report As CrystalReport2
Set Report = New CrystalReport2
Report.Database.SetDataSource rs
frmDetailRpt.CRViewer1.ReportSource = Report
frmDetailRpt.CRViewer1.ViewReport
frmDetailRpt.CRViewer1.Zoom 100
Now it works, but it pulls all the data from the entire table. how can I just set it to display the current recordset? I do have the actual report linked to my sql table..
Thanks in advance