This is a print thingy that i found on here somewhere. My problem is defining the type. It tells me that PrintDocument...Type is not defined...could someone help me with this....Thanks in advance
I Have this
I Have this
VB.NET:
Private WithEvents m_PrintDocument As PrintDocument
' Print the picture.
Private Sub btnPrint_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles BtnPrint.Click
' Copy the form's image into a bitmap.
m_PrintBitmap = GetDecoratedFormImage()
' Make a PrintDocument and print.
m_PrintDocument = New PrintDocument
m_PrintDocument.Print()
End Sub
Last edited by a moderator: