Exemple #1
0
 protected void btn_printmaster_Click(object sender, EventArgs e)
 {
     try
     {
         string libinformation = "Library Information";
         string pagename       = "LibraryInformation.aspx";
         Printcontrol1.loadspreaddetails(gridview1, pagename, libinformation);
         Printcontrol1.Visible = true;
     }
     catch { }
 }
Exemple #2
0
 protected void btnprintmaster1_Click(object sender, EventArgs e)
 {
     try
     {
         string dptname  = "Question Type Matching";
         string pagename = "FeedBackquestion_type.aspx";
         if (FpSpread1.Visible == true)
         {
             Printcontrol1.loadspreaddetails(FpSpread1, pagename, dptname);
         }
         else
         {
             Printcontrol1.loadspreaddetails(FpSpread1, pagename, dptname);
         }
         Printcontrol1.Visible = true;
         lbl_norec1.Visible    = false;
     }
     catch
     {
     }
 }
Exemple #3
0
    protected void btnprintmaster1_Click(object sender, EventArgs e)
    {
        try
        {
            int    count      = 0;
            int    batchcount = 0;
            int    semcount   = 0;
            string degree     = "";
            string batch      = "";
            string semester   = "";
            string dptname    = "Feedback report";
            string pagename   = "Generalfeedback.aspx";
            for (int i = 0; i < cbl_degree.Items.Count; i++)
            {
                if (cbl_degree.Items[i].Selected == true)
                {
                    count++;
                    degree = cbl_degree.Items[i].Text;
                }
            }
            for (int i = 0; i < cbl_batch.Items.Count; i++)
            {
                if (cbl_batch.Items[i].Selected == true)
                {
                    batchcount++;
                    batch = cbl_batch.Items[i].Text;
                }
            }
            for (int i = 0; i < cbl_sem.Items.Count; i++)
            {
                if (cbl_sem.Items[i].Selected == true)
                {
                    semcount++;
                    semester = cbl_sem.Items[i].Text;
                }
            }

            if (count == 1)
            {
                dptname = dptname + "@ Course     : " + degree;
            }
            else if (batchcount == 1 && semcount == 1)
            {
                dptname = dptname + '@' + " Batch  : " + batch + "             Semester : " + semester;
            }
            else if (batchcount == 1)
            {
                dptname = dptname + '@' + " Batch       : " + batch;
            }
            else if (semcount == 1)
            {
                dptname = dptname + '@' + " Semester : " + semester;
            }
            if (FpSpread1.Visible == true)
            {
                Printcontrol1.loadspreaddetails(FpSpread1, pagename, dptname);
            }
            Printcontrol1.Visible = true;
            lbl_norec1.Visible    = false;
        }
        catch
        {
        }
    }