PrintDocument pd = new PrintDocument(); pd.PrintPage += new PrintPageEventHandler(pd_PrintPage); pd.Print(); void pd_PrintPage(object sender, PrintPageEventArgs ev) { System.Drawing.Font printFont = new System.Drawing.Font("IDAutomationHC39M", 9); SolidBrush br = new SolidBrush(Color.Black); ev.Graphics.DrawString("test", printFont, Brushes.Black, new RectangleF(5, 30, 180, 50)); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)