How to display Printer Settings Dialogue?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I am trying to display the "Printer Settings" dialogue in vb.net. I have
found the code for performing this in VB6 but am wondering how this is done
in vb.net. Thanks.
 
This doesn't answer the question posted. I article only addresses the
PrintDialogue and the PrintPreview dialogue which I already know how to
display. The "PrinterSettings" dialogue is displayed by clicking a button
from the PrintDialogue. Again, how does one directly display the
"PrinterSettings" Dialogue form a form? Thanks.
 
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click

' Create a PrintDocument object
Dim prDoc As New PrintDocument
' Link the printing procedure with the PrintPage event.
AddHandler prDoc.PrintPage, AddressOf Me.pd_PrintPage<
' Create the printer settings dialog box and associate
' it with the PrintDocument object.
Dim prDlg As New PrintDialog
prDlg.Document = prDoc
' Display dialog. If user closes dialog with OK,
' start printing.
if prDlg.ShowDialog = DialogResult.OK Then prDoc.Print()
End Sub
 
Back
Top