Arkadaşlar merhabalar. code128 formatında barkod basan bir winform app geliştirdim. Argox yazıcıdan çıktı alıyorum fakat sorunum şu, bastır butonuna tıklayınca ilk etikete yazıp 3 etiket atlıyor, tekrardan barkod bastırmak isteyince yine aynı işlemi yapıyor. Yani her 4 etiketten birine barkod basıp 3 tane boş bırakıyor. Bu sorunu nasıl çözebilirim lütfen yardım edin
private void printDocument_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
Font yaziFontu = new Font("Times New Roman", 10);
Font lotFontu = new Font("Times New Roman",14);
RectangleF rectImage = new RectangleF(5.0F, 10.0F, 365.0F, 20.0F);
RectangleF rectLot = new RectangleF(155.0F, 34.0F, 365.0F, 20.0F);
RectangleF rectKod = new RectangleF(133.0F, 58.0F, 365.0F, 15.0F);
RectangleF rectAd = new RectangleF(30.0F, 73.0F, 365.0F, 15.0F);
e.Graphics.DrawImage(pctrbx_Code.Image, rectImage);
e.Graphics.DrawString(txtbx_Code128_Lot.Text, lotFontu,Brushes.Black,rectLot);
e.Graphics.DrawString(txtbx_Code128_Kod.Text, yaziFontu, Brushes.Black, rectKod);
e.Graphics.DrawString(txtbx_Code128_Ad.Text, yaziFontu,Brushes.Black,rectAd);
}
private void bttn_Print_Click(object sender, EventArgs e)
{
printDocument.DefaultPageSettings.PaperSize = new PaperSize("375 mm x 90 mm", 375, 90);
//PrintPreviewDialog ppvw = new PrintPreviewDialog();
//ppvw.Document = printDocument;
//ppvw.ShowDialog();
printPreviewDialog.Document = printDocument;
printPreviewDialog.ShowDialog();
//printDialog.Document = printDocument;
//if (printDialog.ShowDialog() == DialogResult.OK)
//{
// printDocument.Print();
//}
}