Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CRAlmacenVendeMas rpt = new CRAlmacenVendeMas();

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        private void btnReporte_Click(object sender, EventArgs e)
        {
            CRAlmacenVendeMas     rpt = new CRAlmacenVendeMas();
            frmRptAlmacenVendeMas frm = new frmRptAlmacenVendeMas();

            //rpt.SetDataSource(ds.Reporte(frmLogin.iCodSucursal, dtpFecha1.Value, dtpFecha2.Value, Convert.ToInt32(cmbFormaPago.SelectedValue)).Tables[0]);
            rpt.SetDataSource(ds.Reporte(dtpFecha1.Value, dtpFecha2.Value).Tables[0]);
            frm.cRVAlmacenVendeMas.ReportSource = rpt;
            //frm.crvRptVentCredContDia.ReportSource = rpt;
            frm.Show();
        }