Just retrieve the DataSet using the stored proc and then pass that DataSet
to your document's DataSource property. Something like this:
...
ds = _currencyProcessor.GetCashLedgerReportData(CurrencySortOrder.BySlot,
dtpCurRptOptFromDate.Value,
cbCurRptOptSessionOnly.Checked).DataSet;
oRD = new Currency_CashLedger();
oRD.SetParameterValue("SessionOnly", cbCurRptOptSessionOnly.Checked);
oRD.SetParameterValue("RoomNumber", _currConfig.LocationID.ToString());
oRD.SetParameterValue("Name", _Name);
oRD.SetParameterValue("TransactionDate", dtpCurRptOptFromDate.Value);
oRD.SetDataSource(ds.Tables[0]);
crystalReportViewer2.ReportSource = oRD;
...
Scott
I am clueless on how to integrate stored procedure in Crystal Reports using
C#. Any pointers please?