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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void Form2_Load(object sender, EventArgs e)
        {
            DataSet1 ds = new DataSet1();

            DataSet1TableAdapters.DataTable1TableAdapter ma = new DataSet1TableAdapters.DataTable1TableAdapter();
            ma.Fill(ds.DataTable1);

            CRreceipt cr = new CRreceipt();

            cr.SetDataSource(ds);
            crystalReportViewer1.ReportSource = cr;
        }