Print , Windows Desktop Application Or According To You.
Know More : ASP.Net VB.Net C#.Net Sliverlight XML WPF WCF Ajax
You can print , complete windows desktop application or as you want to print your design like shop bill print , school fee receipt etc. For print your application or your document design, you need to print control in visual studio toolbox “Print form”. This control is not default control for visual studio( in some edition) , you have to download this control from Microsoft site Or search in Google (Type in Google “Visual Basic Power Packs”) or click here to download “”.You can use this control in VB.Net or C#.net application.After complete installation of “Visual Basic Power Packs”. Open Visual studio , and watch in toolbox, as shown in figure..
Now drag and drop printform control on form. You can design your application as you want after complete your design , you can give print command on button or context menu or menu or as you want. I am using button control for print command.
Imports System.Threading.Thread
Imports System.IO
Public Class retail_print
Private Sub ButtonX1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LabelX1.Click
PrintForm1.PrintAction = Printing.PrintAction.PrintToPreview
PrintForm1.Print()
End Sub
End Class
Now start debugging from debug menu or press f5 button, After debug your application Output as shown in figure ……
Thanks.
Know More : ASP.Net VB.Net C#.Net Sliverlight XML WPF WCF Ajax
You can print , complete windows desktop application or as you want to print your design like shop bill print , school fee receipt etc. For print your application or your document design, you need to print control in visual studio toolbox “Print form”. This control is not default control for visual studio( in some edition) , you have to download this control from Microsoft site Or search in Google (Type in Google “Visual Basic Power Packs”) or click here to download “”.You can use this control in VB.Net or C#.net application.After complete installation of “Visual Basic Power Packs”. Open Visual studio , and watch in toolbox, as shown in figure..
Now drag and drop printform control on form. You can design your application as you want after complete your design , you can give print command on button or context menu or menu or as you want. I am using button control for print command.
Imports System.Threading.Thread
Imports System.IO
Public Class retail_print
Private Sub ButtonX1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LabelX1.Click
PrintForm1.PrintAction = Printing.PrintAction.PrintToPreview
PrintForm1.Print()
End Sub
End Class
Now start debugging from debug menu or press f5 button, After debug your application Output as shown in figure ……
Thanks.
Know More : ASP.Net VB.Net C#.Net Sliverlight XML WPF WCF Ajax
No comments