コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            SaleReturnRPT rpt = new SaleReturnRPT();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
 private void SaleReturnReport_Load(object sender, EventArgs e)
 {
     try
     {
         this.StartPosition = FormStartPosition.Manual;
         this.Location      = new Point(0, 0);
         SaleReturnRPT crystal = new SaleReturnRPT();
         sale          ds      = GetData();
         crystal.SetDataSource(ds);
         this.crystalReportViewer1.ReportSource = crystal;
         this.crystalReportViewer1.RefreshReport();
     }
     catch
     {
     }
 }