public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrpProductWiseWaste rpt = new CrpProductWiseWaste();

            rpt.Site = this.Site;
            return(rpt);
        }
        public void ProductWiseWaste(string criteria, DataTable dt)
        {
            try
            {
                objDAL.connectionstring = System.Configuration.ConfigurationManager.ConnectionStrings["MyString"].ConnectionString;
                DataTable dt1 = objDAL.getCompanyInfo();

                CrpProductWiseWaste Rpt = new CrpProductWiseWaste();
                Rpt.Database.Tables[0].SetDataSource(dt);
                Rpt.Database.Tables[1].SetDataSource(dt1);
                Rpt.SummaryInfo.ReportTitle = "PRODUCT WISE WASTE";
                Rpt.SetParameterValue("criteria", criteria);
                this.CRViewer.ReportSource = Rpt;
            }
            catch (Exception exc)
            {
                MessageBox.Show(exc.Message, "Error");
            }
        }