I am programming a system to generate labels, before I relayed it through code (with the ZXing library) and its labels as well. Example of how I currently print the tag:
private void printDocument1_PrintPage(object sender,
System.Drawing.Printing.PrintPageEventArgs e)
{
e.Graphics.DrawImage(generador.GenerarDataMatrix_Gm(StrFinal), 90, 33, 41, 43); /*QRCODE CONFIG*/
try {
using (Graphics g = e.Graphics)
{
using (Font fnt = new Font("Arial", 6))//Formato
{
string caption = string.Format("{0}", "H" + Serial + " (S)");//Texto de la etiqueta
g.DrawString(caption, fnt, Brushes.Black, 18, 057);//posicion del texto
caption = string.Format("{0}", Conexion.Inter);//Texto de la etiqueta
g.DrawString(caption, fnt, Brushes.Black, 18, 49);//posicion del texto
caption = string.Format("{0}", comboBox1.Text);//Texto de la etiqueta
g.DrawString(caption, fnt, Brushes.Black, 18, 041);//posicion del texto
caption = string.Format("{0}", Conexion.Parte);
}
}
}
catch (Exception ex)
{
MessageBox.Show("Printpage " + ex.Message);
}
}
I would like to know if there is any way to design the label with an external program, and with the Windows Forms application that I develop to print the designs according to the part number that they select (since each part number has different designs).