Hello!
I print barcodes from .Net application to Zebla TLP 2844 printer.
It works fine except one very important issue.
Print preview and output are different. Preview lokks fine. everything goes good. but output is not correct.
My label printed is placed wrong. it is shifted down. And after this i see, that next label on the ribbon is not placed correctly, but is just a little forward. And this is that little, my label is misplaced.
When i print something from Microsoft Word to zebra, no problems occure. it rewinds come lables, but it prints at the correct place and next label is not moved forward.
Does anybody can advice me anything solving this problem???
private PrintCanvas(){
PrintPreviewDialog preview = new PrintPreviewDialog();
PrintDocument pdNew = new PrintDocument();
pdNew.PrinterSettings.PrinterName =BarcodePrinter;
pdNew.PrintPage += this.pd_PrintPage;
//pdNew.DefaultPageSettings.Margins.Top = 0;
//pdNew.DefaultPageSettings.Margins.Bottom = 0;
//pdNew.DefaultPageSettings.Margins.Left = 0;
//pdNew.DefaultPageSettings.Margins.Right = 0;
//pdNew.OriginAtMargins = true;
preview.Document = pdNew;
preview.ShowDialog();
}
private void pd_PrintPage(System.Object sender, PrintPageEventArgs ev)
{
ev.Graphics.DrawString("aaa", new Font("Arial", 7, FontStyle.Bold), Brushes.Black, 0, 0);
ev.Graphics.DrawRectangle(Pens.Black, 10 , 10, 10, 10);
ev.HasMorePages = false;
}