日期:2014-05-17  浏览次数:20780 次

打印
 e.Graphics.DrawString("记录", new Font("宋体", 8), Brushes.Black, 20, 220);
            e.Graphics.DrawString("区域", new Font("宋体", 8), Brushes.Black, 90, 220);
            e.Graphics.DrawString("位置", new Font("宋体", 8), Brushes.Black, 160, 220);
            e.Graphics.DrawString("段号", new Font("宋体", 8), Brushes.Black, 230, 220);
            e.Graphics.DrawString("面位号", new Font("宋体", 8), Brushes.Black, 300, 220);
            e.Graphics.DrawString("部门", new Font("宋体", 8), Brushes.Black, 370, 220);
            e.Graphics.DrawString("SKU编号", new Font("宋体", 8), Brushes.Black, 440, 220);
            e.Graphics.DrawString("商品名称", new Font("宋体", 8), Brushes.Black, 570, 220);
            e.Graphics.DrawString("售价", new Font("宋体", 8), Brushes.Black, 690, 220);
            e.Graphics.DrawString("数量", new Font("宋体", 8), Brushes.Black, 750, 220);
            e.Graphics.DrawString("—
————————————————————", new Font("宋体", 8), Brushes.Black, 10, 240);

怎么打印一条直线啊?  还有打印的格式怎么弄,字符怎么从右到左?

------解决方案--------------------
引用:
Quote: 引用:

1、画直线
 e.Graphics.DrawLine函数,

2、打印格式是什么意思??
3、字符方向
System.Drawing.StringFormatFlags.DirectionRightToLeft//这是个枚举

怎么画直线?

 e.Graphics.DrawLine
MSDNhttp://msdn.microsoft.com/zh-cn/library/system.drawing.graphics.drawline(VS.80).aspx