public override void Print()
        {
            try
            {
                rptfrmVehicleListReportViewer frm = new rptfrmVehicleListReportViewer();

                //frm.ReportHeading = "Date Range : " + string.Format("{0:dd/MM/yyyy}", fromDate) + " to " + string.Format("{0:dd/MM/yyyy}", toDate);

                frm.DataSource = GetDataSource().ToList();

                frm.GenerateReport();

                DockWindow doc = UI.MainMenuForm.MainMenuFrm.GetDockByName("rptfrmDriverListReport");

                if (doc != null)
                {
                    doc.Close();
                }
                UI.MainMenuForm.MainMenuFrm.ShowForm(frm);
            }
            catch (Exception ex)
            {
                ENUtils.ShowMessage(ex.Message);
            }
        }
        private void btnEmail_Click(object sender, EventArgs e)
        {
            try
            {
                string error = string.Empty;


                rptfrmVehicleListReportViewer frm = new rptfrmVehicleListReportViewer();
                frm.DataSource = GetDataSource().ToList();
                frm.GenerateReport();
                frm.SendEmail();
            }
            catch (Exception ex)
            {
                ENUtils.ShowMessage(ex.Message);
            }
        }
        private void btnExportExcel_Click(object sender, EventArgs e)
        {
            try
            {
                rptfrmVehicleListReportViewer frm = new rptfrmVehicleListReportViewer();


                frm.DataSource = GetDataSource().ToList();

                frm.GenerateReport();

                frm.ExportReportToExcel();
            }
            catch (Exception ex)
            {
                ENUtils.ShowMessage(ex.Message);
            }
        }
        private void btnExportPDF_Click(object sender, EventArgs e)
        {
            try
            {
                rptfrmVehicleListReportViewer frm = new rptfrmVehicleListReportViewer();



                //  frm.ReportHeading = "Date Range : " + string.Format("{0:dd/MM/yyyy}", fromDate) + " to " + string.Format("{0:dd/MM/yyyy}", toDate);
                frm.DataSource = GetDataSource().ToList();

                frm.GenerateReport();

                frm.ExportReport();
            }
            catch (Exception ex)
            {
                ENUtils.ShowMessage(ex.Message);
            }
        }