private void ObtenerEtiquetaPrint() { printDialog1 = new PrintDialog(); if (printDialog1.ShowDialog() == DialogResult.OK) { bool print = false; if (null != txtSerial.Text) { var item = ConnectionTraza.GetInformationSerial(txtSerial.Text); if (item.MLFB != null) { string zpl = replaceZPL(item); print = printLabel(printDialog1.PrinterSettings.PrinterName, zpl); txtSerial.Text = string.Empty; if (print) { Correcto(); } else { Incorrecto(); } } else { NoExiste(); } } else { Vacio(); } } }
private void ObtenerEtiqueta() { lblError.Visible = false; bool print = false; if (null != txtSerial.Text && txtSerial.Text != string.Empty) { var item = ConnectionTraza.GetInformationSerial(txtSerial.Text); //if (item.MLFB != null) //{ // string zpl = replaceZPL(item); // print = printLabel(@"ZDesigner ZT410-203dpi ZPL", zpl); // txtSerial.Text = string.Empty; // if (print) // Correcto(); // else // Incorrecto(); //} //else // NoExiste(); } else { Vacio(); } }
public IActionResult Index(SerialPrintModel item) { bool print = false; if (null != item.Serial) { item = ConnectionTraza.GetInformationSerial(this.AppSettings, item.Serial); string zpl = replaceZPL(this.AppSettings, item); print = printLabel(this.AppSettings, zpl); } return(View()); }