首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

打印,该怎么解决

2013-07-11 
打印 e.Graphics.DrawString(记录, new Font(宋体, 8), Brushes.Black, 20, 220)e.Graphics.DrawStri

打印
 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

热点排行