}//----------------------

        //event is raised when the print student load button is clicked
        private void _frmStudentSearchOnPrintStudentLoadClick()
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                DateTime dateEnding;

                if (this.ctlManager.SemesterComboBox.SelectedIndex >= 0)
                {
                    dateEnding = _studentManager.GetSemesterDateStart(_studentManager.GetSemesterSystemId(this.ctlManager.SchoolYearComboBox.SelectedIndex,
                                                                                                          this.ctlManager.SemesterComboBox.SelectedIndex));
                }
                else
                {
                    dateEnding = _studentManager.GetSchoolYearDateStart(_studentManager.GetSchoolYearYearId(this.ctlManager.SchoolYearComboBox.SelectedIndex));
                }

                _studentManager.PrintStudentLoad(_userInfo, _dateStart, _dateEnd, dateEnding.AddDays(-1).ToShortDateString() + " 11:59:59 PM",
                                                 _frmStudentSearch.pgbPrint);

                this.Cursor = Cursors.Arrow;

                _frmStudentSearch.SetProgressBarValue(0);
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error in Printing");
            }
        }//---------------------------