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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemple #2
0
        private void label11_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            Rpt_Card  report = new Rpt_Card();
            FrmReport frm    = new FrmReport();
            int       Id     = Convert.ToInt32(txtid.Text);

            report.SetDataSource(GetOrderDetails(Id));
            frm.crystalReportViewer1.ReportSource = report;
            frm.ShowDialog();
            this.Cursor = Cursors.Default;
        }