private void Document_PrintPage(object sender, PrintPageEventArgs e)
        {
            using (var brush = new SolidBrush(Color.Black))
            {
                foreach (IPrintLine line in PrintLines)
                {
                    if (line == null)
                    {
                        continue;
                    }

                    GPrintLine gline = line as GPrintLine;
                    if (gline != null && !gline.IsEmpty())
                    {
                        if (gline.Font == null)
                        {
                            throw new ArgumentNullException("Line.Font");
                        }
                        if (gline.Font.Value == null)
                        {
                            throw new ArgumentNullException("Line.Font.Value");
                        }

                        e.Graphics.DrawString(
                            string.IsNullOrEmpty(gline.Description) ? gline.Text : string.Format(gline.Description, gline.Text),
                            gline.Font.Value, brush, line.X, line.Y);
                    }
                }
            }
        }
 public VoucherPrintLayout276()
 {
     RetailerID = new GPrintLine();
     Line1      = new GPrintLine();
     Line2      = new GPrintLine();
     Line5      = new GPrintLine();
     Line3      = new GPrintLine();
     Phone      = new GPrintLine();
     VoucherID  = new GPrintLine();
     VATNumber  = new GPrintLine();
     ShopName   = new GPrintLine();
 }