private void PrintHead(PrintPageEventArgs e, string head, ref int yOffset) { e.Graphics.DrawString(head, _fontHeader, Brushes.Black, new Rectangle(e.MarginBounds.X, yOffset, e.MarginBounds.Width, e.MarginBounds.Height)); yOffset += (int) e.Graphics.MeasureString(head, _fontHeader, e.MarginBounds.Width).Height; }