jazzmaster111
Programmer
Hi:
How can I send a string to the printer in order it prints this string?
Thanks!!
How can I send a string to the printer in order it prints this string?
Thanks!!
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
printdocument2.print
Private Sub PrintDocument2_PrintPage(ByVal sender As Object, ByVal e As Drawing.Printing.PrintPageEventArgs) Handles PrintDocument2.PrintPage
Dim documentfont As New System.Drawing.Font("Arial", 8, FontStyle.Bold)
Dim documentbrush As New System.Drawing.SolidBrush(System.Drawing.Color.Black)
e.Graphics.DrawString(stringtoprint, documentfont, documentbrush, 10, 10)
Next
End Sub