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

            rpt.Site = this.Site;
            return(rpt);
        }
 private void SalesBillingReport_Load(object sender, EventArgs e)
 {
     try
     {
         var SalesDetails = new SalesDetails
         {
             SalesId = SalesId
         };
         DtSalesDetails = _SalesRepository.GetLastSalesDetailsBySalesId(SalesDetails);
         SalesBillingDataSet SBDS = new SalesBillingDataSet();
         DtSalesDetails.TableName = "SalesBillingReport";
         SBDS.Merge(DtSalesDetails);
         SalesBillingCrystalRpt SBCR = new SalesBillingCrystalRpt();
         SBCR.SetDataSource(SBDS.Tables["SalesBillingReport"]);
         CrystalReportViewerSales.ReportSource = SBCR;
         CrystalReportViewerSales.Refresh();
         //MessageBox.Show(SBDS.Tables.Count.ToString());
     }
     catch (Exception _exception)
     {
         CmC.InsertException(_exception);
         messageShow.singlemsgtext(CmC.ExceptionErrorMessage);
     }
 }