日期:2014-05-18 浏览次数:20888 次
private void button1_Click(object sender, EventArgs e) { printPreviewDialog1.ShowDialog(); printPreviewDialog1.Document = printDocument1; } private void printDocument1_PrintPage(object sender, PrintPageEventArgs e) { e.Graphics.DrawString(str, new Font("宋体", 10, FontStyle.Regular), new SolidBrush(Color.Black), 50, 160); }