Exemplo n.º 1
0
    public static int Use2(string numero, string rutaFoto, string archivoSalida)
    {
        int ret = Jpt.OK;

        Jpt.SetField("documentno", numero);

        ret = Jpt.Code2File(rutaFoto, "", archivoSalida);
        if (ret != Jpt.OK)
        {
            MessageBox.Show(Jpt.Error(ret), "JPT Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
        }
        return(ret);
    }
Exemplo n.º 2
0
    public static int Use(string numero, string apellidos, string nombre, DateTime fechaNacimiento, string nacionalidad, DateTime fechaVigencia, string sexo, string MRZ, string rutaFoto, int idPersona, string archivoSalida)
    {
        int ret = Jpt.OK;

        Jpt.SetField("documentno", numero);
        Jpt.SetField("surname", apellidos);
        Jpt.SetField("givenname", nombre);
        Jpt.SetField("birthdate", fechaNacimiento.ToString("yyMMdd"));
        Jpt.SetField("birthplace", nacionalidad);
        Jpt.SetField("dateexpiry", fechaVigencia.ToString("yyMMdd"));
        Jpt.SetField("sex", sexo);
        Jpt.SetField("ocr", MRZ);

        ret = Jpt.Code2File(rutaFoto, "", archivoSalida);
        return(ret);
        //if (ret != Jpt.OK)
        //    MessageBox.Show(Jpt.Error(ret), "JPT Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
    }
Exemplo n.º 3
0
    public static void Use()
    {
        int ret = Jpt.OK;

        Jpt.SetField("documentno", "JU155483");
        Jpt.SetField("surname", "SINGER");
        Jpt.SetField("givenname", "VICTORIA");
        Jpt.SetField("birthdate", "791203");
        Jpt.SetField("birthplace", "Jurio");
        Jpt.SetField("dateexpiry", "170502");
        Jpt.SetField("sex", "F");
        Jpt.SetField("ocr", "P<JURSINGER<<VICTORIA<<<<<<<<<<<<<<<<<<<<<<<\r\nJU155483<3JUR8709136F1602113<<<<<<<<<<<<<<00");

        ret = Jpt.Code2File("http://motd.mx/Licencias2/html/images/persona/chavo.jpg", "", "LS.BMP");
        if (ret != Jpt.OK)
        {
            MessageBox.Show(Jpt.Error(ret), "JPT Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
        }
    }