private void buttonEtqSimples_Click(object sender, EventArgs e) { SaveConfig(); var ret = ACBrETQ.ETQ_Ativar(); ACBrETQ.CheckResult(ret); if ((new[] { 1, 2 }).Contains(comboBoxModelo.SelectedIndex)) { ret = ACBrETQ.ETQ_ImprimirTexto(0, 2, 2, 2, 3, 3, "BISCOITO MARILAN RECH 335G", 0, true); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 2, 2, 1, 8, 3, "CHOC BRANCO", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirBarras(0, 0, 2, 2, 13, 5, "7896003701685", 10, 1); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirCaixa(13, 32, 56, 17, 1, 1); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 3, 3, 2, 18, 35, "R$", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 3, 4, 4, 15, 50, "20,59", 0, false); ACBrETQ.CheckResult(ret); } else { ret = ACBrETQ.ETQ_ImprimirCaixa(3, 3, 90, 5, 5, 0); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "T", 10, 10, 3, 3, "BISCOITO MARILAN RECH 335G", 0, true); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(2, "S", 10, 10, 8, 3, "CHOC BRANCO", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirBarras(0, 0, 2, 2, 13, 5, "7896003701685", 10, 1); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirCaixa(13, 32, 56, 17, 1, 1); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "G", 40, 80, 18, 35, "R$", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "G", 55, 100, 15, 50, "20,59", 0, false); ACBrETQ.CheckResult(ret); } ret = ACBrETQ.ETQ_Imprimir((int)numericUpDownCopias.Value, (int)numericUpDownAvancoEtq.Value); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_Desativar(); ACBrETQ.CheckResult(ret); }
private void buttonEtqImagem_Click(object sender, EventArgs e) { SaveConfig(); var ret = ACBrETQ.ETQ_Ativar(); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirImagem(1, 10, 10, textBoxImagem.Text); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_Imprimir((int)numericUpDownCopias.Value, (int)numericUpDownAvancoEtq.Value); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_Desativar(); ACBrETQ.CheckResult(ret); }
private void buttonEtqBloco_Click(object sender, EventArgs e) { SaveConfig(); var ret = ACBrETQ.ETQ_Ativar(); ACBrETQ.CheckResult(ret); if ((new[] { 1, 2 }).Contains(comboBoxModelo.SelectedIndex)) { ret = ACBrETQ.ETQ_IniciarEtiqueta(); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 2, 2, 2, 3, 3, "BISCOITO MARILAN RECH 335G", 0, true); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 2, 2, 1, 8, 3, "CHOC BRANCO", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirBarras(0, 0, 2, 2, 13, 5, "7896003701685", 10, 1); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 3, 3, 2, 18, 35, "R$", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 3, 4, 4, 15, 50, "20,59", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_FinalizarEtiqueta((int)numericUpDownCopias.Value, (int)numericUpDownAvancoEtq.Value); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_IniciarEtiqueta(); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 2, 2, 2, 3, 3, "SABAO EM PO FLASH 1KG", 0, true); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 2, 2, 1, 8, 3, "ADVANCED - UNIDADE", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirBarras(0, 0, 2, 2, 13, 5, "7898903097042", 10, 1); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 3, 3, 2, 18, 35, "R$", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 3, 4, 4, 15, 50, "3,18", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_FinalizarEtiqueta((int)numericUpDownCopias.Value, (int)numericUpDownAvancoEtq.Value); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_IniciarEtiqueta(); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 2, 2, 2, 3, 3, "AMACIANTE AMACIEX 5 LTS", 0, true); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 2, 2, 1, 8, 3, "MACIO MATRIX FIX", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirBarras(0, 0, 2, 2, 13, 5, "7898237690230", 10, 1); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 3, 3, 2, 18, 35, "R$", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 3, 4, 4, 15, 50, "8,60", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_FinalizarEtiqueta((int)numericUpDownCopias.Value, (int)numericUpDownAvancoEtq.Value); ACBrETQ.CheckResult(ret); } else { ret = ACBrETQ.ETQ_IniciarEtiqueta(); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirCaixa(3, 3, 90, 5, 5, 0); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "T", 10, 10, 3, 3, "BISCOITO MARILAN RECH 335G", 0, true); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "S", 10, 10, 8, 3, "CHOC BRANCO", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirBarras(0, 0, 2, 2, 13, 5, "7896003701685", 10, 1); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "G", 40, 80, 18, 35, "R$", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "G", 55, 100, 15, 50, "20,59", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_FinalizarEtiqueta((int)numericUpDownCopias.Value, (int)numericUpDownAvancoEtq.Value); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_IniciarEtiqueta(); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirCaixa(3, 3, 90, 5, 5, 0); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "T", 10, 10, 3, 3, "SABAO EM PO FLASH 1KG", 0, true); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "S", 10, 10, 8, 3, "ADVANCED - UNIDADE", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirBarras(0, 0, 2, 2, 13, 5, "7898903097042", 10, 1); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "G", 40, 80, 18, 35, "R$", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "G", 55, 100, 15, 50, "3,18", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_FinalizarEtiqueta((int)numericUpDownCopias.Value, (int)numericUpDownAvancoEtq.Value); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_IniciarEtiqueta(); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirCaixa(3, 3, 90, 5, 5, 0); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "T", 10, 10, 3, 3, "AMACIANTE AMACIEX 5 LTS", 0, true); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "S", 10, 10, 8, 3, "MACIO MATRIX FIX", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirBarras(0, 0, 2, 2, 13, 5, "7898237690230", 10, 1); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "G", 40, 80, 18, 35, "R$", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "G", 55, 100, 15, 50, "8,60", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_FinalizarEtiqueta((int)numericUpDownCopias.Value, (int)numericUpDownAvancoEtq.Value); ACBrETQ.CheckResult(ret); } ret = ACBrETQ.ETQ_Imprimir(1, (int)numericUpDownAvancoEtq.Value); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_Desativar(); ACBrETQ.CheckResult(ret); }
private void buttonEtq3Colunas_Click(object sender, EventArgs e) { SaveConfig(); var ret = ACBrETQ.ETQ_Ativar(); ACBrETQ.CheckResult(ret); if ((new[] { 1, 2 }).Contains(comboBoxModelo.SelectedIndex)) { ret = ACBrETQ.ETQ_ImprimirTexto(0, 2, 1, 2, 2, 3, "BISCOITO REC 33G", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 2, 1, 1, 6, 3, "CHOC BRANCO", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirBarras(0, 0, 2, 2, 8, 3, "7896003701685", 10, 0); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 2, 1, 2, 2, 32, "BISCOITO RECH 33G", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 2, 1, 1, 6, 32, "CHOC BRANCO", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirBarras(0, 0, 2, 2, 8, 32, "7896003701685", 10, 0); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 2, 1, 2, 2, 61, "BISCOITO RECH 33G", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, 2, 1, 1, 6, 61, "CHOC BRANCO", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirBarras(0, 0, 2, 2, 8, 61, "7896003701685", 10, 0); ACBrETQ.CheckResult(ret); } else { ret = ACBrETQ.ETQ_ImprimirTexto(0, "0", 20, 30, 2, 3, "BISCOITO REC 33G", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "0", 20, 20, 6, 3, "CHOC BRANCO", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirBarras(0, 0, 2, 2, 8, 3, "7896003701685", 10, 0); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "0", 20, 30, 2, 32, "BISCOITO RECH 33G", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "0", 20, 20, 6, 32, "CHOC BRANCO", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirBarras(0, 0, 2, 2, 8, 32, "7896003701685", 10, 0); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "0", 20, 30, 2, 61, "BISCOITO RECH 33G", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirTexto(0, "0", 20, 20, 6, 61, "CHOC BRANCO", 0, false); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_ImprimirBarras(0, 0, 2, 2, 8, 61, "7896003701685", 10, 0); ACBrETQ.CheckResult(ret); } ret = ACBrETQ.ETQ_Imprimir((int)numericUpDownCopias.Value, (int)numericUpDownAvancoEtq.Value); ACBrETQ.CheckResult(ret); ret = ACBrETQ.ETQ_Desativar(); ACBrETQ.CheckResult(ret); }