PrintForm in VB2010 Print in Tray Manual Feed

Desire on the moment to print to select the manual supply (MANUAL FEED), without use the PrintToPreview, directly from a button and on having print request to insert the paper in the printer.

I am grateful for his help

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
For Each papSource In PrintForm1.PrinterSettings.PaperSources
If papSource.Kind = PaperSourceKind.ManualFeed Then
PrintForm1.PrinterSettings.DefaultPageSettings.PaperSource = papSource
PrintForm1.Print()
Close()
Exit For
End If
Next
End Sub

Re: PrintForm in VB2010 Print in Tray Manual Feed

Posted 23 January 2014 - 06:44 PM

the reason why I require is printed through that tray is because I need to print the form of a check, the print format printer obviously request is entered the paper, Once inserted the paper (check) you pressed the button to continue printing.

the problem is how to select the tray from code to request the insertion of paper, piece of code I attached is what little I've found, but it will pass and prints by default tray, not the manual tray, I can not put the manual tray by default, because there are other prints to be automatic, I appreciate your attention

This post has been edited by andrewsw: 23 January 2014 - 11:54 PM
Reason for edit:: Removed previous quote