예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrpLastSaleReport rpt = new CrpLastSaleReport();

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
 public void PartyAging(DataTable dt)
 {
     try
     {
         objDAL.connectionstring = System.Configuration.ConfigurationManager.ConnectionStrings["MyString"].ConnectionString;
         DataTable         dt1 = objDAL.getCompanyInfo();
         CrpLastSaleReport Rpt = new CrpLastSaleReport();
         Rpt.Database.Tables[0].SetDataSource(dt);
         Rpt.Database.Tables[1].SetDataSource(dt1);
         Rpt.SummaryInfo.ReportTitle = "CUSTOMER's AGING";
         this.CRViewer.ReportSource  = Rpt;
     }
     catch (Exception exc)
     {
         MessageBox.Show(exc.Message, "Error");
     }
 }