protected void ButtonExportToPDF_Click(object sender, EventArgs e)
        {
            List <UserApplication> users = new List <UserApplication>();
            string officeUsers           = "";

            if (this.DropDownApplications.SelectedValue == "---Select Application---" || this.DropDownApplications.SelectedValue == "All" || this.DropDownApplications.SelectedValue == "")
            {
                users       = UsersApplicationsBLL.GetAllUsersApps(SelectApplications.All);
                officeUsers = "All";
            }
            else
            {
                users       = UsersApplicationsBLL.GetAllUsersApps(SelectApplications.SpecifucApplication, this.DropDownApplications.SelectedItem.Text);
                officeUsers = this.DropDownApplications.SelectedValue;
            }
            ExportToPDF.Users(Page.Server, users, officeUsers, this.savePdfVersion);

            string pdfName = "http://res.cloudinary.com/hzgrm4rdh/image/upload/" + this.savePdfVersion.Value + "/PDFs/Users_" + officeUsers + ".pdf";

            Response.Redirect(pdfName);
        }
        protected void testBtn_Click(object sender, EventArgs e)
        {
            //CreatePDF();
            List <UserApplication> users = new List <UserApplication>();
            string officeUsers           = "";

            if (this.DropDownApplications.SelectedValue == "---Select Application---" || this.DropDownApplications.SelectedValue == "All" || this.DropDownApplications.SelectedValue == "")
            {
                users       = UsersApplicationsBLL.GetAllUsersApps(SelectApplications.All);
                officeUsers = "All";
            }
            else
            {
                users       = UsersApplicationsBLL.GetAllUsersApps(SelectApplications.SpecifucApplication, this.DropDownApplications.SelectedItem.Text);
                officeUsers = this.DropDownApplications.SelectedValue;
            }
            ExportToPDF.Users(Page.Server, users, officeUsers, this.savePdfVersion);

            Response.ContentType = "Application/pdf";
            Response.AppendHeader("Content-Disposition", "attachment; filename=Users.pdf");
            Response.TransmitFile(Server.MapPath("~/App_Data/Users.pdf"));
            Response.End();
        }