Exemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CRChoferes rpt = new CRChoferes();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void FormImprimirChoferes_Load(object sender, EventArgs e)
        {
            CRChoferes           cRChoferes   = new CRChoferes();
            DBTransporte         dBTransporte = new DBTransporte();
            ChoferesTableAdapter adapter      = new ChoferesTableAdapter();

            adapter.Fill(dBTransporte.choferes);
            cRChoferes.SetDataSource(dBTransporte);
            crystalReportViewer1.ReportSource = cRChoferes;
        }