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
********************************
PrintDialog1.Document = PrintDocument1 'PrintDialog associate with PrintDocument.
If PrintDialog1.ShowDialog() = DialogResult.OK Then
PrintDocument1.Print()
End If