I am using crystal reports to display Reports in my program. I use VB Report Designer Component.
To display the report I use ADO recordset as the datasource.
Is there any way to read the data which is already displayed in the crystal reports. May be some kind of interface?
I created a Group Section and a Details section.
I have created a subreport(on demand subreport) in the group section, before the subreport is displayed i need to identify on which Group the user has clicked.
Private Sub CRViewer1_DrillOnSubreport(GroupNameList As Variant, ByVal SubreportName As String, ByVal Title As String, ByVal PageNumber As Long, ByVal Index As Long, UseDefault As Boolean)
'CRAdoRs is the datasource, ADO Recordset
CRAdoRs.Move Index, 1
'Read all the items from the recordset
'''''
'''''
End Sub
The above code works fine for the first page, on the second and subsequent pages the 'Index' starts again from 0 and i get the wronge values .
Any ideas read the data which is already displayed in the crystal reports?
Thanks.