public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            dailyReport rpt = new dailyReport();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void button2_Click(object sender, EventArgs e)
        {
            DataSet   ds = new DataSet();
            DataTable dt = new DataTable();

            dt.Columns.Add("الساعة");
            dt.Columns.Add(dayAr);
            foreach (DataGridViewRow dgv in dataGridView1.Rows)
            {
                dt.Rows.Add(dgv.Cells[0].Value, dgv.Cells[1].Value);
            }
            ds.Tables.Add(dt);
            ds.WriteXmlSchema("document.xml");
            dailyReport cr = new dailyReport();

            cr.SetDataSource(ds);
            System.Drawing.Printing.PrintDocument printDoc = new System.Drawing.Printing.PrintDocument();
            cr.PrintOptions.PrinterName = printDoc.PrinterSettings.PrinterName;
            cr.PrintToPrinter(1, true, 0, 0);
        }