public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CRRankingCliente rpt = new CRRankingCliente(); rpt.Site = this.Site; return(rpt); }
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(); }