Hello everyone!
I have a report and almost all of the values are taken from recordset. I am using Field Definition to design my report in Crystal Report 8.5 for ease deployment of the application. I only know how to pass data from recordset to CR with no sub report inside. To pass the values of recordset to report use the code below:
---- sample code start here
dim rs as new ADODB.RECORDSET
rs.open "Select LASTNAME, FIRSTNAME from customer", dbcnn, adOpenStatic, adLockOptimistic, adcmdtext
crpt1.reportfilename = app.path & "\report1.rpt"
Crpt1.SetTablePrivateData 0, 3, rs
Crpt1.action =1
---- end of my sample code
Again, I use the code above to pass the value of recordset to a report with no subreport.
Now, the problem is:
1. How do you pass the value of recordset to subreport of report?
2. Any sample codes for reference?
I need your help badly because I'm running out of time to implement my project. Please help. Thank you in advance.
I have a report and almost all of the values are taken from recordset. I am using Field Definition to design my report in Crystal Report 8.5 for ease deployment of the application. I only know how to pass data from recordset to CR with no sub report inside. To pass the values of recordset to report use the code below:
---- sample code start here
dim rs as new ADODB.RECORDSET
rs.open "Select LASTNAME, FIRSTNAME from customer", dbcnn, adOpenStatic, adLockOptimistic, adcmdtext
crpt1.reportfilename = app.path & "\report1.rpt"
Crpt1.SetTablePrivateData 0, 3, rs
Crpt1.action =1
---- end of my sample code
Again, I use the code above to pass the value of recordset to a report with no subreport.
Now, the problem is:
1. How do you pass the value of recordset to subreport of report?
2. Any sample codes for reference?
I need your help badly because I'm running out of time to implement my project. Please help. Thank you in advance.