Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2008 Printer Name

$
0
0
I'm trying to open a dialog box, select a printer and use that printer to print multiple addresses. The code below will open a dialog box every time when it is ready to print. I want to open the dialog box only once. What is the code that will tell me what PrinterName was selected so I can use the code PrintDialog1.Document.PrinterSettings.PrinterName = "HP xxx"

********************************
PrintDialog1.Document = PrintDocument1 'PrintDialog associate with PrintDocument.
If PrintDialog1.ShowDialog() = DialogResult.OK Then
PrintDocument1.Print()
End If

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>