vb.net 如何将查询的一条记集打印到A4纸上面!
vb.net 如何将查询的一条录集打印到A4纸上面,这条记录有12个字段,需要分别放置在A4纸的不同位置,请问该如何才能实现,谢谢大家?!我尝试打印窗体,但只能打印窗体显示出来的部分,而且打印出来的字非常模糊,不知该怎么解决。 --------------------编程问答-------------------- 只能在PRINTDOCUMENT分别画出来
在PRINTDOCUMENT.PRINTpage事件中
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
' Create string to draw.
Dim drawString As [String] = "Sample Text"
' Create font and brush.
Dim drawFont As New Font("Arial", 16)
Dim drawBrush As New SolidBrush(Color.Black)
' Create point for upper-left corner of drawing.
Dim drawPoint As New PointF(150.0F, 150.0F)
' Draw string to screen.
e.Graphics.DrawString(drawString, drawFont, drawBrush, drawPoint)
End Sub
补充:.NET技术 , VB.NET