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

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        public void ShowStockStatement(DataTable dt)
        {
            try
            {
                objDAL.connectionstring = System.Configuration.ConfigurationManager.ConnectionStrings["MyString"].ConnectionString;
                DataTable dt1 = objDAL.getCompanyInfo();


                //CrpStockStatement Rpt = new CrpStockStatement();
                CrpStockStatementQty Rpt = new CrpStockStatementQty();
                Rpt.Database.Tables[0].SetDataSource(dt);
                Rpt.Database.Tables[1].SetDataSource(dt1);
                this.CRViewer.ReportSource = Rpt;
            }
            catch (Exception exc)
            {
                MessageBox.Show(exc.Message, "Error");
            }
        }