protected void Page_Load(object sender, EventArgs e) { string deptId =Convert.ToString(Session["DeptID"]); int month = Convert.ToInt16(Session["Month"]); int Comp = Convert.ToInt16(Session["Compare"]); ClerkStationaryTrendByDeptCrystalReport cr = new ClerkStationaryTrendByDeptCrystalReport(); cr.SetDataSource(control.getClerkReportByDept(month, Comp, deptId)); CrystalReportViewer1.ReportSource = cr; CrystalReportViewer1.DataBind(); }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { ClerkStationaryTrendByDeptCrystalReport rpt = new ClerkStationaryTrendByDeptCrystalReport(); rpt.Site = this.Site; return rpt; }