打印问题——————右对齐!
Jarod 2003-12-24 10:14:41 PrintDocument doc = new PrintDocument();
doc.PrintPage += new PrintPageEventHandler(doc_PrintPage);
private void doc_PrintPage(object sender, PrintPageEventArgs ev)
{
Font f = new Font("Arial", 12);
ev.Graphics.Drawstring("Hello, World.",f, Brushes.Black, 100, 100);
ev.HasMorePages = false;
}
打印时 是从100,100为左起点输出。
我想向票据上打出一列右对齐的数字(如货币)
请问如何指定右端点?