Example #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            POSItemListCrystalReport rpt = new POSItemListCrystalReport();

            rpt.Site = this.Site;
            return(rpt);
        }
 private void POSItemListPrintReport_Load(object sender, EventArgs e)
 {
     try
     {
         this.StartPosition = FormStartPosition.Manual;
         this.Location      = new Point(0, 0);
         POSItemListCrystalReport crystal = new POSItemListCrystalReport();
         BillingPOSPrintDataSet   ds      = GetData();
         crystal.SetDataSource(ds);
         this.crystalReportViewer1.ReportSource = crystal;
         this.crystalReportViewer1.RefreshReport();
     }
     catch
     {
     }
 }