如何在打印文档中旋转垂直定位的字符串?

时间:2013-06-21 09:31:43

标签: vb.net user-interface printing printdocument print-preview

我在打印文档中垂直打印一个字符串...字符串打印正确..但它在内部打印..我想显示字符串外...任何人都可以帮我如何打印字符串垂直和也在外部位置......我的示例代码

Dim xFormatNew As New StringFormat()

xFormatNew.FormatFlags = StringFormatFlags.DirectionVertical

drawRect = New RectangleF(50, 30, 20, 100)

xFormatNew.Alignment = StringAlignment.Near

e.Graphics.DrawString("Good Day", New Font("Arial",10,FontStyle.Bold), Brushes.Black, drawRect, xFormatNew)

0 个答案:

没有答案