This will give me a print preview:
Dim dlg As New PrintPreviewDialog()
dlg.Document = PrintDocument1
dlg.ShowDialog()
This will let me select a printer:
Dim dlg As New PrintDialog()
dlg.Document = PrintDocument1
If dlg.ShowDialog = DialogResult.OK Then
PrintDocument1.Print()
End If
But, how do I do both?
Dim dlg As New PrintPreviewDialog()
dlg.Document = PrintDocument1
dlg.ShowDialog()
This will let me select a printer:
Dim dlg As New PrintDialog()
dlg.Document = PrintDocument1
If dlg.ShowDialog = DialogResult.OK Then
PrintDocument1.Print()
End If
But, how do I do both?