public static void Main() { try { Jpt.Start("jpt.ini"); // do this once on app start Jpt.Use2("1234567890", @"C:\Users\SSP\Downloads\Debug\fotoHector.jpg", @"C:\Users\SSP\Downloads\Debug\foto.jpg"); // do this for each document Jpt.End(); // do this once on app end } catch (Exception ex) { MessageBox.Show(ex.Message, "JPT Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }
public static void Main() { try { Jpt.Start("jpt.ini"); // do this once on app start Jpt.Use(); // do this for each document Jpt.End(); // do this once on app end } catch (Exception ex) { MessageBox.Show(ex.Message, "JPT Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }
private void iniciarServer() { Jpt.Start("jpt.ini"); // setTexto("Servidor iniciado"); int ret = Jura.Jura.getCountLicence(); ret = Jura.Jura.init("jpt.ini"); if (ret == 0) { ret = Jura.Jura.getExpiryDate(); string fecha = ret.ToString(); setTexto("Servidor iniciado. Licencias Disponibles: " + Jura.Jura.getCountLicence() + ", fecha expiración: " + fecha.Substring(0, 4) + "-" + fecha.Substring(4, 2) + "-" + fecha.Substring(6, 2)); } }