Hello i have an idea of call crystal report using stored proc
now i want to call subreport how to do this task?
iam created subreport and link to mainreport.
iam using datadinding source for connect to database.
So how to call subreport in code
my subreport name is SubReportMurchantAct.rpt
any body modify my code or give example...........
Give me some example code to call subreport.plz...
So how to call subreport in code
any body modify my code or give example...........
my code is to call main crystal report
IDBManager dbManager = new DBManager(DataProvider.SqlServer);
dbManager.ConnectionString = ConfigurationSettings.AppSettings["SQLCN"].ToString();
dbManager.Open();
dbManager.CreateParameters(1);
dbManager.AddParameters(0, "@Trandate", dateTimePicker1.Value.Date);
ds = dbManager.ExecuteDataSet(CommandType.StoredProcedure, "sp_MerchantActivityByDateRangeRpt");
MerchantActivityCrpt obj = new MerchantActivityCrpt();
obj.SetDataSource(ds.Tables[0]);
crystalReportViewer1.ReportSource = obj;