public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CRResumenCobranza rpt = new CRResumenCobranza(); rpt.Site = this.Site; return(rpt); }
private void btnReporte_Click(object sender, EventArgs e) { CRResumenCobranza rpt = new CRResumenCobranza(); frmRptCobranzaSucursal frm = new frmRptCobranzaSucursal(); //rpt.SetDataSource(ds.Reporte(frmLogin.iCodSucursal, dtpFecha1.Value, dtpFecha2.Value, Convert.ToInt32(cmbFormaPago.SelectedValue)).Tables[0]); DataTable dt = ds.ReportCobranzaSucursal(dtpFecha1.Value, dtpFecha2.Value, frmLogin.iCodSucursal).Tables[0]; rpt.SetDataSource(dt); if (dt.Rows.Count > 0) { frm.cRVRptCobranzaSucursal.ReportSource = rpt; //frm.crvRptVentCredContDia.ReportSource = rpt; frm.Show(); } }