private void btnStampaEtichetta1_Click(object sender, EventArgs e) { lblMessaggio.Text = string.Empty; if (ddlStampanti.SelectedIndex == -1) { lblMessaggio.Text = "Selezionare la stampante"; return; } if (string.IsNullOrEmpty(txtE1_SKU.Text) || string.IsNullOrEmpty(txtE1_Parziale.Text) || string.IsNullOrEmpty(txtE1_Quantita.Text) || string.IsNullOrEmpty(txtE1_StampatoDa.Text)) { lblMessaggio.Text = "Ci sono campi vuoti nell'etichetta. Impossibile stampare"; return; } if (nE1.Value <= 0) { lblMessaggio.Text = "Indicare il numero di etichette"; return; } // string PrinterName = @"\\10.30.1.10\ZDesigner CONF-CHANEL"; string PrinterName = ddlStampanti.SelectedItem.ToString(); for (int i = 0; i < nE1.Value; i++) { ZebraHelper.EtichettaLuisVuitton(PrinterName, txtE1_SKU.Text, txtE1_Parziale.Text, txtE1_Quantita.Text, txtE1_StampatoDa.Text); } }