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

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

                String sem = String.Empty;

                sem = this.ctlManager.SemesterComboBox.SelectedIndex != -1 ? " - " + this.ctlManager.SemesterComboBox.Text : String.Empty;

                _studentManager.PrintStudentEnrolmentList(_userInfo, this.ctlManager.CourseCheckedListBox,
                                                          this.ctlManager.YearLevelCheckedListBox, _frmStudentSearch.pgbPrint, this.ctlManager.SchoolYearComboBox.Text + sem, _dateStart, _dateEnd);

                this.Cursor = Cursors.Arrow;

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