protected void btn_Search_Click(object sender, EventArgs e)
 {
     img_ExportToExcel1.Visible = false;
     if (ddl_NewType.SelectedValue == null || ddl_NewType.SelectedValue == "0")
     {
         RadWindowManager1.RadAlert("لطفا ترم را وارد نمایید", 0, 100, "پیام", "");
     }
     else
     {
         dtResault = FRB.ShowClockDateExam(ddl_NewType.SelectedValue);
         if (dtResault.Rows.Count == 0)
         {
             RadWindowManager1.RadAlert("رکوردی وجود ندارد", 0, 100, "پیام", "");
         }
         else
         {
             img_ExportToExcel1.Visible = true;
             this.StiWebViewer1.ResetReport();
             StiWebViewer1.Visible = true;
             StiReport rpt = new StiReport();
             rpt.Load(Server.MapPath("../Report/ReportExamShowClockDate.mrt"));
             rpt.ReportCacheMode = StiReportCacheMode.On;
             rpt.Dictionary.Databases.Clear();
             rpt.Dictionary.Databases.Add(new StiSqlDatabase("Connection1", CB.ReportConnection.ToString()));
             rpt.Compile();
             rpt.CompiledReport.DataSources["[Faculty].[SP_GetSaatDateExam]"].Parameters["@Term"].ParameterValue = ddl_NewType.SelectedValue;
             rpt.RegData(dtResault);
             rpt.Dictionary.Synchronize();
             //rpt.Show();
             StiWebViewer1.Report  = rpt;
             StiWebViewer1.Visible = true;
             //rpt.Print(true);
         }
     }
 }