以下几行代码,如果写在控件的Paint事件中,科目(借)就能正常显示,但是,如果写在PrintDocument的PrintPage事件中,在通过PrintPreviewDialog进行预览时,显示就折行了.请问是怎么回事,急盼回答,谢谢!!StringFormat sf = new StringFormat();
sf.Alignment = StringAlignment.Near;
sf.LineAlignment = StringAlignment.Center;
sf.FormatFlags = 0; e.Graphics.DrawString("科目(借)", new Font("宋体", 10), Brushes.Black, new RectangleF(593, 150, 60, 23), sf);