B
Bob Clegg
I am in the same boat as Moondog on the 2nd July.
I have a report designed against a dataset.
Proved the datasset is OK by dropping a datagrid onto the form and it binds
OK to the data.
But the report is empty (except for headers). My method is similar to
Moondog except the dataset is based on a SProc.
The dataset is instantiated in FormA, passed to a DataHandling class which
fills it. by executing the SProc
it is then passed to the report form in the constructor.
The constructor then passes it down to a subroutine 'loadreport' which
attempts to bind it to the report viewer
Code is :
Private Sub loadreport(ByRef dsevents As dsReportEvent)
' Called by new(ByRef dsevents As dsReportEvent)
Me.dg1.DataSource = dsevents
Me.dg1.DataMember = "Table"'Datagrid sanity check
mRpt = New rptEventReport 'report class underlying report based on dsEvents
mRpt.SetDataSource(dsevents)
Me.crvMain.ReportSource = mRpt 'setting the viewer
End Sub
Any help would be appreciated.
Thanks
Bob
I have a report designed against a dataset.
Proved the datasset is OK by dropping a datagrid onto the form and it binds
OK to the data.
But the report is empty (except for headers). My method is similar to
Moondog except the dataset is based on a SProc.
The dataset is instantiated in FormA, passed to a DataHandling class which
fills it. by executing the SProc
it is then passed to the report form in the constructor.
The constructor then passes it down to a subroutine 'loadreport' which
attempts to bind it to the report viewer
Code is :
Private Sub loadreport(ByRef dsevents As dsReportEvent)
' Called by new(ByRef dsevents As dsReportEvent)
Me.dg1.DataSource = dsevents
Me.dg1.DataMember = "Table"'Datagrid sanity check
mRpt = New rptEventReport 'report class underlying report based on dsEvents
mRpt.SetDataSource(dsevents)
Me.crvMain.ReportSource = mRpt 'setting the viewer
End Sub
Any help would be appreciated.
Thanks
Bob