コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CRMercaderiaEntregar rpt = new CRMercaderiaEntregar();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        private void btnReporte_Click(object sender, EventArgs e)
        {
            CRMercaderiaEntregar     rpt = new CRMercaderiaEntregar();
            frmRptMercaderiaEntregar frm = new frmRptMercaderiaEntregar();

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