climberhunt
Programmer
I'm trying to populate a report with an ADO recordset.
The following code is what I have so far.
Code:
Dim oApp As New CRAXDRT.Application
Dim oRpt As CRAXDRT.Report
Dim rsResults As New ADODB.Recordset
Set oRpt = oApp.OpenReport("c:\MyReport.rpt")
PopulateRS rsResults
' rsResults now contains data.
oRpt.Database.SetDataSource rsResults
oRpt.ReadRecords
CRViewer1.ReportSource = oRpt
CRViewer1.ViewReport
with the .rpt when it was created, not the rows from the
recordset at runtime. All the columns in the recordset match
exactly the report definition, because the same stored
procedure (in Sybase) was used to create the report at
design time and to populate the recordset at runtime.
Cheers,
Dave.
[sig][/sig]