public void generar2()
        {
            // WritePdf();
            PrintWebControl(divv);
            //asss();

            Image2.ImageUrl = "~/WebsitesScreenshot.png";
            Image2.Visible  = true;


            byte[] ar = oFirma.imageToByteArray(oFirma.urlimagenToImagen("WebsitesScreenshot.png"));

            byte[] b = oFirma.CropImageFile(ar, 780, 295, 878, 410);

            oFirma.MImage("", b);


            Response.Redirect("RegistrarFirmas.aspx");
        }
Esempio n. 2
0
        public void consulta()
        {
            try
            {
                Session["Consulta"] = "consulta";
                DataTable dt = oMyImage.Consulta(Session["txtNombre"].ToString(), Session["txtApePaterno"].ToString(), Session["txtApeMaterno"].ToString(), Session["txtCargo"].ToString());

                txtNombre.Text = dt.Rows[0]["Nombre"].ToString();

                txtApePaterno.Text = dt.Rows[0]["ApellidoPaterno"].ToString();
                txtApeMaterno.Text = dt.Rows[0]["ApellidoMaterno"].ToString();


                txtCargo.Text = dt.Rows[0]["Cargo"].ToString();

                txtCelular.Text = dt.Rows[0]["Celular"].ToString();

                txtTelefono.Text = dt.Rows[0]["telefono"].ToString();

                txtAnexo.Text = dt.Rows[0]["anexo"].ToString();

                txtCelularRPM.Text    = dt.Rows[0]["RPM"].ToString();
                txtCelularNextel.Text = dt.Rows[0]["Nextel"].ToString();



                oMyImage.MImage("", (byte[])dt.Rows[0]["imagen"]);
                iFirma.ImageUrl = "firma.png";
                iFirma.Visible  = true;

                lblmensaje.Visible = false;
            }
            catch
            {
                lblmensaje.Text      = "llene los campos Nombre, Apellido Paterno y Apellido Materno para realizar la consulta";
                lblmensaje.Visible   = true;
                lblmensaje.ForeColor = System.Drawing.Color.Red;
            }
        }