private void printpage(object sender, PrintPageEventArgs e)
{
e.Graphics.PageUnit = gu;
e.PageSettings.PaperSize = new System.Drawing.Printing.PaperSize(); e.PageSettings.PaperSize.Width = 75;
e.PageSettings.PaperSize.Height = 15;
System.Drawing.Image img = System.Drawing.Image.FromFile("C:/'" + barcode_txt + "'.jpg");
#region first sticker(1up)
e.Graphics.DrawString("XYZ", Boldfont, Brushes.Black, 15, 5);
e.Graphics.DrawString(barcode_txt, newfont, Brushes.Black, 16, 12);
e.Graphics.DrawString(item_desc, newfont, Brushes.Black, 7, 14);
e.Graphics.DrawString(SINM.ToString(), newfont, Brushes.Black, 35, 14);
#endregion
#region second sticker(2up)
e.Graphics.DrawString("XYZ", Boldfont, Brushes.Black, 45, 5);
e.Graphics.DrawString(barcode_txt, newfont, Brushes.Black, 49, 12);
#endregion
}
if (MaxLine > 75)
e.HasMorePages = true;
else
e.HasMorePages = false;
the stickers are being omitted blank.. I.E when i print the text is being printed on 8 sticker instead of 1 sticker and if i print again the print is on 16 sticker instead of 2 sticker...
i am using running roll of stickers with 2 ups...
any other suggestions or advice pls?