日期:2014-05-18 浏览次数:21396 次
protected void printDocument_PrintPage(Object sender, PrintPageEventArgs e)
{
private float y=1;
private float x=1;
Font btfont = new Font("黑体", 10);
SizeF size = e.Graphics.MeasureString("样", btfont);
for (int i = 0; i < listBox1.Items.Count; i++)
{
e.Graphics.DrawString("=============客户A信息=========== ", btfont, Brushes.Black, x,y)
y += size.Height;
e.Graphics.DrawString(listBox1.Items[i].ToString(), btfont, Brushes.Black, x,y)
}
}