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

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
        private void btnReporte_Click(object sender, EventArgs e)
        {
            CRRankingCliente     rpt = new CRRankingCliente();
            frmRptRankingCliente frm = new frmRptRankingCliente();

            rpt.SetDataSource(ds.Reporte_Ranking(dtpFecha1.Value, dtpFecha2.Value, frmLogin.iCodAlmacen).Tables[0]);
            frm.crvRankingCliente.ReportSource = rpt;
            frm.Show();
        }