Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can displayed data on the report be read again from VB?

Status
Not open for further replies.

Neo21

Programmer
Mar 25, 2002
14
0
0
IN

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top