Beispiel #1
0
        private void ImpreChofer_Load(object sender, EventArgs e)
        {
            DSChofer DS = new DSChofer();

            int filas = dt.Rows.Count;

            for (int i = filas - 1; i > -1; i--)
            {
                DataRow dr = dt.Rows[i];
                DS.Tables[0].Rows.Add
                    (dr[0].ToString(), dr[1].ToString(), dr[2].ToString(), dr[3].ToString(), dr[5].ToString(), dr[6].ToString(), dr[7].ToString(), dr[20].ToString());
            }

            CRV_Chofer.Visible = true;

            ReportChofer RImpre = new ReportChofer();

            RImpre.SetDataSource(DS);

            CRV_Chofer.ReportSource = RImpre;
        }
Beispiel #2
0
 public virtual ReportDocument CreateReport() {
     ReportChofer rpt = new ReportChofer();
     rpt.Site = this.Site;
     return rpt;
 }