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

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        private void Khachhangrp_Load(object sender, EventArgs e)
        {
            DataTable dt = new DataTable();
            Database  ds = new Database();

            dt = ds.Docbang("Select *From KHACHHANG");
            rpkhachhang rp = new rpkhachhang();

            rp.SetDataSource(dt);
            crystalReportViewer1.ReportSource = rp;
        }