Guest_imported
New member
- Jan 1, 1970
- 0
This is my code ,
but there is no error in the code , i am not able to see
any records in the CRViewer,
I am using seagate crystal reports 7.0
I have populated the report with tables, and it is not empty report, kindly give the solution to this problem
Dim Report As New CrystalReport1
Private Sub Form_Load()
Screen.MousePointer = vbHourglass
Dim ado As ADODB.Connection
Dim rs As ADODB.Recordset
Dim query As String
Set ado = New ADODB.Connection
ado.ConnectionString = modMain.dbconnection
adpen "mashoodtestdsn"
query = "select * from department"
Set rs = ado.Execute(query)
Report.DisplayProgressDialog = True
Report.DataBase.SetDataSource rs, 3, 1
CRViewer1.ReportSource = Report
CRViewer1.ViewReport
Screen.MousePointer = vbDefault
End Sub
thanks
regds shubha
email : shubha_cd@rediffmail.com
but there is no error in the code , i am not able to see
any records in the CRViewer,
I am using seagate crystal reports 7.0
I have populated the report with tables, and it is not empty report, kindly give the solution to this problem
Dim Report As New CrystalReport1
Private Sub Form_Load()
Screen.MousePointer = vbHourglass
Dim ado As ADODB.Connection
Dim rs As ADODB.Recordset
Dim query As String
Set ado = New ADODB.Connection
ado.ConnectionString = modMain.dbconnection
adpen "mashoodtestdsn"
query = "select * from department"
Set rs = ado.Execute(query)
Report.DisplayProgressDialog = True
Report.DataBase.SetDataSource rs, 3, 1
CRViewer1.ReportSource = Report
CRViewer1.ViewReport
Screen.MousePointer = vbDefault
End Sub
thanks
regds shubha
email : shubha_cd@rediffmail.com