예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CRDespachoDocumento rpt = new CRDespachoDocumento();

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
        private void btnReporte_Click(object sender, EventArgs e)
        {
            CRDespachoDocumento     rpt = new CRDespachoDocumento();
            frmRptDespachoDocumento frm = new frmRptDespachoDocumento();

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