System.Windows.Forms.Form fp = System.Windows.Forms.Application.OpenForms["frmbalancesheet"];
DataSet ds = new DataSet();
SqlDataAdapter sda = new SqlDataAdapter("prcexpenseprint", Class1.con);
sda.SelectCommand.CommandType = CommandType.StoredProcedure;
sda.SelectCommand.Parameters.AddWithValue("@expmonth", ((frmbalancesheet)fp).cmbmonth.SelectedIndex.ToString());
sda.SelectCommand.Parameters.AddWithValue("@expyear", ((frmbalancesheet)fp).txtyear.Text);
sda.Fill(ds);
DataSet dss = new DataSet();
SqlDataAdapter sdaa = new SqlDataAdapter("prcincomeprint", Class1.con);
sdaa.SelectCommand.CommandType = CommandType.StoredProcedure;
sdaa.SelectCommand.Parameters.AddWithValue("@dbillmonth",((frmbalancesheet)fp).cmbmonth.SelectedIndex.ToString());
sdaa.SelectCommand.Parameters.AddWithValue("@dbillyear",((frmbalancesheet)fp).txtyear.Text);
sdaa.Fill(dss);
ReportDocument rd = new ReportDocument();
rd.Load("C:\\REPORTS\\crystalReport8.rpt");
DataSet ds3 = new DataSet();
ds3.Merge(ds);
ds3.Merge(dss);
rd.SetDataSource(ds3.Tables[0]);
crystalReportViewer8.ReportSource = rd;
not getting preview,but i got a message,you can provide a single value for this parameter.enter the value you want to include
@expmonth
@expyear
@dbillmonth
@dbillyear