In the PrintDialog there is a listbox where the names of printers
are listed and a button to access Properties of the printer currently
selected.
I am doing my own PrintDialog, and have placed there a combo with the
printer names.
My question is: how do I open the windows printer dialog for the
current printer?
Any reply in ANY .NET language (c#,c++,VB,...) will be very helpful!
Thank you!!
-Pamela
My question in code:
---------------------------------------
Private Sub ButtonSelectedPrinterProperties_Click(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
ButtonSelectedPrinterProperties.Click
Me.PrintDocument.PrinterSettings.PrinterName =
Me.ComboBoxPrinterNames.SelectedText
If Not Me.PrintDocument.PrinterSettings.IsValid Then
MsgBox("Invalid printer", MsgBoxStyle.Information)
Exit Sub
End If
Me.OpenPrinterPropertiesDialog(PrintDocument)
End Sub
Sub OpenPrinterPropertiesDialog(ByVal PrintDocument As
PrintDocument)
' ???????? my question: how to open the windows dialog for
PrintDocument.PrinterSettings
End Sub
--------------------------------------------
|